phalconplus Documentation v1.3.0-development
Source
Class PhalconPlus Curl

# Response

Methods

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

Methods Details

- 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()