Class: HttpResponseProxy¶
HttpResponseProxy is a proxy class that encapsulates HTTP response information.
An instance of this class is returned by ClientAPI.sendRequest after a successful request.
Implements¶
Summary¶
Constructors¶
Properties¶
Class Properties¶
Inherited Properties¶
Currently none inherited from the parent class(es).
Accessors¶
Class Accessors¶
Currently none in this class.
Inherited Accessors¶
Currently none inherited from the parent class(es).
Methods¶
Class Methods¶
Currently none in this class.
Inherited Methods¶
Currently none inherited from the parent class(es).
Constructors¶
Constructor¶
+ new HttpResponseProxy(headers: Object, mimeType: string, statusCode: number, content: IHttpResponseContent): HttpResponseProxy
Parameters:
| Name | Type |
|---|---|
| headers | Object |
| mimeType | string |
| statusCode | number |
| content | IHttpResponseContent |
Returns: HttpResponseProxy
Properties¶
content¶
▸ content: IHttpResponseContent
Gets the response content
Implementation of IHttpResponse.content¶
headers¶
▸ headers: Object
Gets the response headers with key/value pair
Implementation of IHttpResponse.headers¶
mimeType¶
▸ mimeType: string
Gets the mime type
Implementation of IHttpResponse.mimeType¶
statusCode¶
▸ statusCode: number
Gets the HTTP status code
Implementation of IHttpResponse.statusCode