From b01078af3832127e1197644e6e2f5ce26dfc7c40 Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Wed, 20 Sep 2023 13:54:41 -0400 Subject: [PATCH] Further HTTP experiments --- packages/node/src/lib/http-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/src/lib/http-client.ts b/packages/node/src/lib/http-client.ts index 6fe4d420b..f4ff626ba 100644 --- a/packages/node/src/lib/http-client.ts +++ b/packages/node/src/lib/http-client.ts @@ -16,7 +16,7 @@ export interface HTTPFetchFn { */ export interface HTTPFetchRequest { headers: Record - body?: string | ReadableStream + body: string method: HTTPClientRequest['method'] signal: any // AbortSignal type does not play nicely with node-fetch } @@ -27,7 +27,7 @@ export interface HTTPFetchRequest { */ export interface HTTPResponse { headers: Record - body: string + body: string | ReadableStream | null status: number statusText: string }