PHP Class Horde_Http_Response_Curl, horde

Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_Http_Response_Base
Exibir arquivo Open project: horde/horde

Protected Properties

Property Type Description
$_body string Response body.
$_info array Info on the request obtained from curl_getinfo().

Public Methods

Method Description
__construct ( string $uri, string $curlresult, array $curlinfo ) Constructor.
getBody ( ) : string Returns the body of the HTTP response.

Protected Methods

Method Description
_parseInfo ( array $curlinfo ) Processes the results of curl_getinfo.
_parseResult ( string $curlresult ) Parses the combined header/body result from cURL.

Method Details

__construct() public method

Constructor.
public __construct ( string $uri, string $curlresult, array $curlinfo )
$uri string
$curlresult string
$curlinfo array

_parseInfo() protected method

Processes the results of curl_getinfo.
protected _parseInfo ( array $curlinfo )
$curlinfo array

_parseResult() protected method

Parses the combined header/body result from cURL.
protected _parseResult ( string $curlresult )
$curlresult string

getBody() public method

Returns the body of the HTTP response.
public getBody ( ) : string
return string HTTP response body.

Property Details

$_body protected_oe property

Response body.
protected string $_body
return string

$_info protected_oe property

Info on the request obtained from curl_getinfo().
protected array $_info
return array