Response

A class represents API response.
Methods Summary
public
# __construct( int $httpStatus , string $body , string[] $headers = array ( ) )
Response constructor.
public
# getHTTPStatus( )
Returns HTTP status code of response.
public
# isSucceeded( )
Returns request is succeeded or not.
public
# getRawBody( )
Returns raw response body.
public
# getJSONDecodedBody( )
Returns response body as array (it means, returns JSON decoded body).
public
# getHeader( string $name )
Returns the value of the specified response header.
public
# getHeaders( )
Returns all of response headers.