PHP Класс Services_Yadis_ParanoidHTTPFetcher, aprilchild

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

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

Метод Описание
Services_Yadis_ParanoidHTTPFetcher ( $timeout )
_writeData ( $ch, $data )
_writeHeader ( $ch, $header )
get ( string $url, array $extra_headers = null ) : mixed Fetches the specified URL using optional extra headers and returns the server's response. Uses the CURL extension.
reset ( )

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

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

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

public _writeData ( $ch, $data )

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

public _writeHeader ( $ch, $header )

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

Fetches the specified URL using optional extra headers and returns the server's response. Uses the CURL extension.
public get ( string $url, array $extra_headers = null ) : mixed
$url string The URL to be fetched.
$extra_headers array An array of header strings (e.g. "Accept: text/html").
Результат mixed $result An array of ($code, $url, $headers, $body) if the URL could be fetched; null if the URL does not pass the URLHasAllowedScheme check or if the server's response is malformed.

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

public reset ( )