PHP Класс Habari\CURLRequestProcessor

Наследование: extends RequestProcessor
Показать файл Открыть проект

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

Метод Описание
__construct ( )
_headerfunction ( $ch, $str ) : integer cURL will hand each header received by the *response* to this method, so we use it to conveniently capture them for storing in case the user wants them.
execute ( $method, $url, $headers, $body, $config )
get_response_body ( )
get_response_headers ( )

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

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

public __construct ( )

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

cURL will hand each header received by the *response* to this method, so we use it to conveniently capture them for storing in case the user wants them.
public _headerfunction ( $ch, $str ) : integer
$ch resource The cURL handle from curl_init() that is executing.
$str string The header received from the response. Should always be a single header at a time.
Результат integer The length of the header. Used by cURL to report the header_size returned by the curl_getinfo() method.

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

public execute ( $method, $url, $headers, $body, $config )

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

public get_response_body ( )

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