You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
This server class allows operating with REST responses.
Initialises an empty SimpleRestResponse object.
Return:
Example:
var sm = sws.SimpleRestResponse(response);
This method returns the response body.
var sm = sws.SimpleRestResponse(response); var body = sm.getBody();
This method returns the array containing response headers.
var sm = sws.SimpleRestResponse(response); var headers = sm.getAllHeaders();
Returns the HTTP status code.
var sm = sws.SimpleRestResponse(response); var status = sm.getStatusCode();
This method displays if there was an error during the REST transaction.
var sm = sws.SimpleRestResponceApi(response); var error = sm.getHaveError();