PHP Класс Doctrine\OrientDB\Binding\Client\Http\CurlClientResponse

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$body
$headers
$protocol
$rawHeaders
$statusCode

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

public __toString ( )

buildHeaders() защищенный Метод

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

getBody() публичный Метод

Returns the body of the response.
public getBody ( ) : String
Результат String

getCookies() публичный Метод

Returns the cookies set in the current response.
public getCookies ( ) : array
Результат array

getHeader() публичный Метод

Returns the value of the specified header.
public getHeader ( string $header ) : string
$header string Header name.
Результат string

getProtocol() публичный Метод

Returns the protocol used to communicate with the client.
public getProtocol ( ) : string
Результат string

getRawHeaders() защищенный Метод

Returns all the headers as a string.
protected getRawHeaders ( ) : string
Результат string

getResponse() публичный Метод

Returns the whole response.
public getResponse ( ) : String
Результат String

getStatusCode() публичный Метод

Returns the status code of the response.
public getStatusCode ( ) : String
Результат String

getValidStatusCodes() публичный Метод

Returns an array for the HTTP status codes that are considered as valid responses.
public getValidStatusCodes ( ) : String
Результат String

setProtocol() защищенный Метод

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

setStatusCode() защищенный Метод

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

Описание свойств

$body защищенное свойство

protected $body

$headers защищенное свойство

protected $headers

$protocol защищенное свойство

protected $protocol

$rawHeaders защищенное свойство

protected $rawHeaders

$statusCode защищенное свойство

protected $statusCode