From f70144e26b2335f37e080acd1588a7365892a5d5 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 10 Jul 2023 13:13:55 -0400 Subject: [PATCH] feat: new `parseSuccessResonseBody` option for requests (#563) --- src/RequestRequestOptions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RequestRequestOptions.ts b/src/RequestRequestOptions.ts index 9c99d3338..b0fe04216 100644 --- a/src/RequestRequestOptions.ts +++ b/src/RequestRequestOptions.ts @@ -13,6 +13,10 @@ export type RequestRequestOptions = { * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. */ signal?: Signal; + /** + * If set to `false`, the response body will not be parsed and will be returned as a stream. + */ + parseSuccessResponseBody?: boolean; [option: string]: any; };