PHP Class Doctrine\OrientDB\Binding\Client\Http\CurlClientResponse

Mostrar archivo Open project: doctrine/orientdb-odm Class Usage Examples

Protected Properties

Property Type Description
$body
$headers
$protocol
$rawHeaders
$statusCode

Public Methods

Method Description
__construct ( String $response ) Constructs a new object from an existing HTTP response.
__toString ( )
getBody ( ) : String Returns the body of the response.
getCookies ( ) : array Returns the cookies set in the current response.
getHeader ( string $header ) : string Returns the value of the specified header.
getProtocol ( ) : string Returns the protocol used to communicate with the client.
getResponse ( ) : String Returns the whole response.
getStatusCode ( ) : String Returns the status code of the response.
getValidStatusCodes ( ) : String Returns an array for the HTTP status codes that are considered as valid responses.

Protected Methods

Method Description
buildHeaders ( string $headers ) Builds headers array from a well-formatted string.
getRawHeaders ( ) : string Returns all the headers as a string.
setProtocol ( string $protocol ) Sets the protocol used for the communication with the client.
setStatusCode ( integer $code ) Sets the status code of the response.

Method Details

__construct() public method

Constructs a new object from an existing HTTP response.
public __construct ( String $response )
$response String

__toString() public method

public __toString ( )

buildHeaders() protected method

Builds headers array from a well-formatted string.
protected buildHeaders ( string $headers )
$headers string

getBody() public method

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

getCookies() public method

Returns the cookies set in the current response.
public getCookies ( ) : array
return array

getHeader() public method

Returns the value of the specified header.
public getHeader ( string $header ) : string
$header string Header name.
return string

getProtocol() public method

Returns the protocol used to communicate with the client.
public getProtocol ( ) : string
return string

getRawHeaders() protected method

Returns all the headers as a string.
protected getRawHeaders ( ) : string
return string

getResponse() public method

Returns the whole response.
public getResponse ( ) : String
return String

getStatusCode() public method

Returns the status code of the response.
public getStatusCode ( ) : String
return String

getValidStatusCodes() public method

Returns an array for the HTTP status codes that are considered as valid responses.
public getValidStatusCodes ( ) : String
return String

setProtocol() protected method

Sets the protocol used for the communication with the client.
protected setProtocol ( string $protocol )
$protocol string

setStatusCode() protected method

Sets the status code of the response.
protected setStatusCode ( integer $code )
$code integer

Property Details

$body protected_oe property

protected $body

$headers protected_oe property

protected $headers

$protocol protected_oe property

protected $protocol

$rawHeaders protected_oe property

protected $rawHeaders

$statusCode protected_oe property

protected $statusCode