InternalOptionalbodyA BodyInit object or null to set request's body.
Readonlylocked: booleanThe locked read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
Optionaloptions: ReadableStreamIteratorOptionsThe cancel() method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
Optionalreason: anyThe getReader() method of the ReadableStream interface creates a reader and locks the stream to it.
Optionaloptions: ReadableStreamGetReaderOptionsThe pipeThrough() method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
Optionaloptions: StreamPipeOptionsThe pipeTo() method of the ReadableStream interface pipes the current ReadableStream to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
Optionaloptions: StreamPipeOptionsThe tee() method of the two-element array containing the two resulting branches as new ReadableStream instances.
Optionaloptions: ReadableStreamIteratorOptionsReadonlysize: numberThe size read-only property of the Blob interface returns the size of the Blob or File in bytes.
Readonlytype: stringThe type read-only property of the Blob interface returns the MIME type of the file.
The arrayBuffer() method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
The bytes() method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
The slice() method of the Blob interface creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
Optionalstart: numberOptionalend: numberOptionalcontentType: stringThe stream() method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the Blob.
The text() method of the string containing the contents of the blob, interpreted as UTF-8.
Readonly[toStringTag]: "ArrayBuffer"ReadonlybyteLength: numberRead-only. The length of the ArrayBuffer (in bytes).
Returns a section of an ArrayBuffer.
Optionalbegin: numberOptionalend: numberReadonlybuffer: {The ArrayBuffer instance referenced by the array.
Readonly[toStringTag]: "ArrayBuffer"ReadonlybyteLength: numberRead-only. The length of the ArrayBuffer (in bytes).
Returns a section of an ArrayBuffer.
Optionalbegin: numberOptionalend: numberReadonlybyteLength: numberThe length in bytes of the array.
ReadonlybyteOffset: numberThe offset in bytes of the array.
The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.
Optionalfilename: stringThe delete() method of the FormData interface deletes a key and its value(s) from a FormData object.
Returns an array of key, value pairs for every entry in the list.
OptionalthisArg: anyThe get() method of the FormData interface returns the first value associated with a given key from within a FormData object.
The getAll() method of the FormData interface returns all the values associated with a given key from within a FormData object.
The has() method of the FormData interface returns whether a FormData object contains a certain key.
Returns a list of keys in the list.
The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
Optionalfilename: stringReturns a list of values in the list.
OptionalcacheA string indicating how the request will interact with the browser's cache to set request's cache.
OptionalcredentialsA string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
OptionalheadersA Headers object, an object literal, or an array of two-item arrays to set request's headers.
The append() method of the Headers interface appends a new value onto an existing header inside a Headers object, or adds the header if it does not already exist.
The delete() method of the Headers interface deletes a header from the current Headers object.
Returns an iterator allowing to go through all key/value pairs contained in this object.
OptionalthisArg: anyThe get() method of the Headers interface returns a byte string of all the values of a header within a Headers object with a given name.
The getSetCookie() method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
The has() method of the Headers interface returns a boolean stating whether a Headers object contains a certain header.
Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
The set() method of the Headers interface sets a new value for an existing header inside a Headers object, or adds the header if it does not already exist.
Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
OptionalintegrityA cryptographic hash of the resource to be fetched by request. Sets request's integrity.
OptionalkeepaliveA boolean to set request's keepalive.
A string to set request's method.
OptionalmodeA string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
OptionalpriorityOptionalredirectA string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
OptionalreferrerA string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
OptionalreferrerA referrer policy to set request's referrerPolicy.
OptionalsignalAn AbortSignal to set request's signal.
Readonlyaborted: booleanThe aborted read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (true) or not (false).
Readonlyreason: anyThe reason read-only property returns a JavaScript value that indicates the abort reason.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe throwIfAborted() method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
OptionalwindowCan only be null. Used to disassociate request from any Window.
Configuration type for
ApiBase.doFetch.