Response

Class representing a HTTP Response.

Functions

#

getResponse() → {Object}

Get the response

response

Object
Example

SampleCopycopied

var res = ZDK.HTTP.request({'url': 'https://zylker.com?q=dxt', 'method': 'GET'});
res.getResponse();

#

getHeaders() → {Object}

Get the response' header object

headers

Object
Example

SampleCopycopied

var res = ZDK.HTTP.request({'url': 'https://zylker.com?q=dxt', 'method': 'GET'});
res.getHeaders();

#

getStatusCode() → {Number}

Get the response' status code

statuscode

Number
Examples

SampleCopycopied

var res = ZDK.HTTP.request({'url': 'https://zylker.com?q=dxt', 'method': 'GET'});
res.getStatusCode();

Output

201