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

Afficher le fichier Open project: doctrine/orientdb-odm Class Usage Examples

Protected Properties

Свойство Type Description
$body
$headers
$protocol
$rawHeaders
$statusCode

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

buildHeaders() protected méthode

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

getBody() public méthode

Returns the body of the response.
public getBody ( ) : String
Résultat String

getCookies() public méthode

Returns the cookies set in the current response.
public getCookies ( ) : array
Résultat array

getHeader() public méthode

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

getProtocol() public méthode

Returns the protocol used to communicate with the client.
public getProtocol ( ) : string
Résultat string

getRawHeaders() protected méthode

Returns all the headers as a string.
protected getRawHeaders ( ) : string
Résultat string

getResponse() public méthode

Returns the whole response.
public getResponse ( ) : String
Résultat String

getStatusCode() public méthode

Returns the status code of the response.
public getStatusCode ( ) : String
Résultat String

getValidStatusCodes() public méthode

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

setProtocol() protected méthode

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

setStatusCode() protected méthode

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