response data type
Response body value
Creates a clone of a response object, identical in every way, but stored in a different variable
List of response decoders
Event emitter to broadcast response events
Set of response headers
A meta flag that indicates that the request is important: is usually used with decoders to indicate that the request needs to be executed as soon as possible
Reviver function for JSON.parse
True if the response status matches with a successful status codes (by default it should match range from 200 to 299)
A list of status codes (or a single code) that match successful operation. Also, you can pass a range of codes.
Parent operation promise
True if the response was obtained through a redirect
Original type of the response data
Response status code
Response status text
List of response decoders to apply for chunks when you are parsing response in a stream form
Mode type of the response
The resolved request URL (after resolving redirects, etc.)
True, if the response body is already read
Sets a new status of bodyUsed
Type of the response data
Sets a new type of the response data
True, if the response body is already read as a stream
Sets a new status of streamUsed
Returns an iterator by the response body.
Mind, when you parse response via iterator, you won't be able to use other parse methods, like json
or text
.
Applies the given decoders to the specified data and returns a promise with the result
Applies the given decoders to the specified data stream and yields values via an asynchronous iterator
Parses the response body as an ArrayBuffer and returns it
Parses the response body as a Blob structure and returns it
Parses the response body and returns a promise with the result. The operation result is memoized, and you can't parse the response as a stream after invoking this method.
A way to parse data is based on the response Content-Type
header or a passed responseType
constructor option.
Also, a sequence of decoders is applied to the parsed result if they are passed with a decoders
constructor option.
Parses the response body as a stream and yields chunks via an async iterator. You can't parse the response as a whole data after invoking this method.
A way to parse data chunks is based on the response Content-Type
header or a passed responseType
constructor option. Also, a sequence of stream decoders is applied to the parsed chunk if they are
passed with a streamDecoders
constructor option.
Converts the specified data to a Blob structure and returns it
Converts the specified data to a string and returns it
Parses the response body as a Document instance and returns it
Parses the response body as a FormData object and returns it
Returns an HTTP header value by the specified name
Parses the response body as a JSON object and returns it
Parses the response data stream as a JSON tokens and yields them via an async iterator
Reads the response body or throws an exception if reading is impossible
Parses the response data stream as an ArrayBuffer chunks and yields them via an async iterator
Parses the response body as a string and returns it
Parses the response data stream as a text chunks and yields them via an async iterator
Class to work with server response data