Skip to content

Commit f70144e

Browse files
authored
feat: new parseSuccessResonseBody option for requests (#563)
1 parent 2fc7576 commit f70144e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RequestRequestOptions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export type RequestRequestOptions = {
1313
* Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests.
1414
*/
1515
signal?: Signal;
16+
/**
17+
* If set to `false`, the response body will not be parsed and will be returned as a stream.
18+
*/
19+
parseSuccessResponseBody?: boolean;
1620

1721
[option: string]: any;
1822
};

0 commit comments

Comments
 (0)