HTTP Response reference
The response
object holds the information about a received HTTP Response (response content, headers, status, and so on) and provides access to the headers and contentType nested objects.
Properties
Property | Description |
---|---|
| Response content, which is a string or a JSON object if the response's |
| |
| Response status, for example, |
| The contentType object, which holds the data on the |
Headers object
The ResponseHeaders
object is used for retrieving the data about response headers' values.
Methods
Method | Parameters | Description |
---|---|---|
valueOf | | Retrieves the first value of the |
valuesOf | | Retrieves the array containing all values of the |
ContentType object
The ContentType
data object contains information from the Content-Type
response header.
Properties
Property | Description |
---|---|
| The MIME type of the response, for example, |
| The string representation of the response charset, for example, |