Skip to content

Commit

Permalink
feat: new parseSuccessResonseBody option for requests (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored Jul 10, 2023
1 parent 2fc7576 commit f70144e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RequestRequestOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit f70144e

Please sign in to comment.