HttpClientResponse class
The Response subclass returned by methods such as HttpClient.fetch().
Remarks
This is a placeholder. In the future, additional HttpClient-specific functionality may be added to this class.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the HttpClientResponse
class.
Properties
body |
See documentation for the browser's Body API |
headers | See documentation for the browser's Response API |
native |
|
ok | See documentation for the browser's Response API |
status | See documentation for the browser's Response API |
status |
See documentation for the browser's Response API |
type | See documentation for the browser's Response API |
url | See documentation for the browser's Response API |
Methods
array |
See documentation for the browser's Body API |
blob() | See documentation for the browser's Body API |
clone() | |
form |
See documentation for the browser's Body API |
json() | See documentation for the browser's Body API |
text() | See documentation for the browser's Body API |
Property Details
bodyUsed
headers
nativeResponse
protected nativeResponse: Response;
Property Value
Response
ok
status
statusText
type
See documentation for the browser's Response API
get type(): ResponseType;
Property Value
ResponseType
url
Method Details
arrayBuffer()
See documentation for the browser's Body API
arrayBuffer(): Promise<ArrayBuffer>;
Returns
Promise<ArrayBuffer>
blob()
clone()
formData()
See documentation for the browser's Body API
formData(): Promise<FormData>;
Returns
Promise<FormData>