mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat(ext/fetch): Request.bytes()
and Response.bytes()
(#23823)
Closes #23790
This commit is contained in:
parent
f5d0c4b1ea
commit
8a636d0600
13 changed files with 75 additions and 48 deletions
4
ext/fetch/lib.deno_fetch.d.ts
vendored
4
ext/fetch/lib.deno_fetch.d.ts
vendored
|
@ -58,6 +58,10 @@ declare interface Body {
|
|||
* that resolves with a `Blob`.
|
||||
*/
|
||||
blob(): Promise<Blob>;
|
||||
/** Takes a `Response` stream and reads it to completion. It returns a promise
|
||||
* that resolves with a `Uint8Array`.
|
||||
*/
|
||||
bytes(): Promise<Uint8Array>;
|
||||
/** Takes a `Response` stream and reads it to completion. It returns a promise
|
||||
* that resolves with a `FormData` object.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue