PHP Class Services_Yadis_ParanoidHTTPFetcher, aprilchild

Inheritance: extends Services_Yadis_HTTPFetcher
Datei anzeigen Open project: aprilchild/aprilchild

Public Methods

Method Description
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 ( )

Method Details

Services_Yadis_ParanoidHTTPFetcher() public method

_writeData() public method

public _writeData ( $ch, $data )

_writeHeader() public method

public _writeHeader ( $ch, $header )

get() public method

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").
return 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 method

public reset ( )