Constructs an instance of ApiResponse.
The native Fetch API Response object.
The associated ApiRequest that generated this response.
ReadonlyresponseThe native Fetch API Response object.
ReadonlyrequestThe associated ApiRequest that generated this response.
Indicates whether the HTTP response status is within the successful range (200–299).
true if the response is successful, otherwise false.
Returns all response headers as a Headers object.
Retrieves and parses the response body automatically based on the request configuration.
The expected type of the parsed data.
A promise resolving to the parsed data of type T.
Supported response types:
jsontextblobarrayBufferauto (default – automatically detects format)Parses the response as JSON.
The expected JSON object type.
A promise resolving to parsed JSON data.
Represents an enhanced HTTP response with intelligent parsing capabilities. This class wraps the native Fetch API
Responseand automatically determines the appropriate parsing strategy for the returned data.