diff options
author | Andreu Botella <abb@randomunok.com> | 2021-06-23 16:00:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 16:00:23 +0200 |
commit | edab21ebab3daa3cb0ebd5f6fca60c17098df242 (patch) | |
tree | 601557d2ff77687acc5b883201a7fbc0ce2482dd /extensions/web/internal.d.ts | |
parent | 2c4ce26f0bf1bf957d5c7dec28372898c60ed66c (diff) |
fix(fetch): proxy body for requests created from other requests (#11093)
Additionally, if the existing `Request`'s body is disturbed, the Request creation
should fail.
This change also updates the step numbers in the Request constructor to match
whatwg/fetch#1249.
Diffstat (limited to 'extensions/web/internal.d.ts')
-rw-r--r-- | extensions/web/internal.d.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/web/internal.d.ts b/extensions/web/internal.d.ts index 06976b28b..bbf529b77 100644 --- a/extensions/web/internal.d.ts +++ b/extensions/web/internal.d.ts @@ -81,6 +81,7 @@ declare namespace globalThis { declare var streams: { ReadableStream: typeof ReadableStream; isReadableStreamDisturbed(stream: ReadableStream): boolean; + createProxy<T>(stream: ReadableStream<T>): ReadableStream<T>; }; declare namespace messagePort { |