Type Alias: UploadChunk
UploadChunk =
string|ArrayBuffer|ArrayBufferView
Defined in: api/rust-fetch.d.ts:34
A request body:
stringis sent as-is (text/plainunless you setContent-Type)Uint8Array/ArrayBuffer/ anyArrayBufferViewis sent as bytes (application/octet-stream)Blob/Fileis sent as bytes with the blob's typeFormDatais sent asmultipart/form-data, including filesURLSearchParamsis sent form-encoded (application/x-www-form-urlencoded)ReadableStream/ async iterable byte sources stream with backpressure; a factory permits replay- anything else is sent as JSON (
application/json), likeJSON.stringify