Script.Util.HttpResponse
An object that contains information about an HTTP request. This object is returned by calling the send()
method of the Script.Util.HttpGet and Script.Util.HttpRequest request handlers.
The Script.Util.HttpResponse
object has the properties listed in this table.
Property | Type | Description |
---|---|---|
content | String | The content body returned in the response. |
contentType | String | The content type returned in the response. |
encoding | String | The type of encoding returned in the response. |
headers | Object | An object that contains the response headers returned in the response. |
returnStatus | Number | A value that indicates the status of the response. Possible values:
|
statusCode | Number | The HTTP status code that the request returned, such as 200 or 404 . |
This example shows how to reference the properties of a Script.Util.HttpResponse
object returned by the Script.Util.HttpRequest()
request handler.