RESTResponse
public class RESTResponse
Method Summary | |
---|---|
void | setBody(mixed result) Set the response body. |
mixed | getBody() Get the response body. |
void | setInfo(array result, mixed info) Set the response information. |
array | getInfo($index Index, str key) Get the response information. |
array | getUrl() Get the URL. |
array | Get the content type. |
array | Get the HTTP response code. |
array | Get the redirect URL. |
array | Get error message from REST response body. |
public void setBody(mixed result)
Set the response body.
public mixed getBody()
Get the response body.
public void setInfo(array result, mixed info)
Set the response information.
public array getInfo($index Index, str key)
Get the response information.
public array getUrl()
Get the URL.
public array getContentType()
Get the content type.
public array getHttpCode()
Get the HTTP response code.
public array getRedirectUrl()
Get the redirect URL.
public array getErrorMessage()
Get error message from REST response body.
Represents a REST response.