-
getBody() : stringThe response body.
-
getStatusText() : stringThe response code including text, e.g. '200 OK'.
-
getStatusCode() : intThe response code.
-
-
Parse a header string.
-
Parse an array of headers.
-
Get a specific header from the response.
-
getHeaders() : voidGets all the headers of the response.
-
toArray() : voidConvert the response instance to an array.
-
toJson() : voidConvert the response object to a JSON string.
-
jsonSerialize() : void
-
__toString() : voidConvert the object to its string representation by returning the body.
-
public function getBody()
The response body. -
public function getStatusText()
The response code including text, e.g. '200 OK'. -
public function getStatusCode()
The response code. -
public function __construct(string $body, string $headers, variable $info)
-
protected function parseHeader(string $header)
Parse a header string. -
protected function parseHeaders(array $headers)
Parse an array of headers. -
public function getHeader(variable $key)
Get a specific header from the response. -
public function getHeaders()
Gets all the headers of the response. -
public function toArray()
Convert the response instance to an array. -
public function toJson()
Convert the response object to a JSON string. -
public function jsonSerialize()
-
public function __toString()
Convert the object to its string representation by returning the body. -
internal function zephir_init_properties_PhalconPlus_Curl_Response()