Public Member Functions

Services_Yadis_PlainHTTPFetcher Class Reference

Inheritance diagram for Services_Yadis_PlainHTTPFetcher:
Services_Yadis_HTTPFetcher

Public Member Functions

 Services_Yadis_PlainHTTPFetcher ($timeout)
 get ($url, $extra_headers=null)

Detailed Description

Definition at line 28 of file PlainHTTPFetcher.php.


Member Function Documentation

get ( url,
extra_headers = null 
)

Fetches the specified URL using optional extra headers and returns the server's response. Uses plain PHP library calls and doesn't rely on any extensions.

Parameters:
string $url The URL to be fetched.
array $extra_headers An array of header strings (e.g. "Accept: text/html").
Returns:
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.

Reimplemented from Services_Yadis_HTTPFetcher.

Definition at line 47 of file PlainHTTPFetcher.php.

Services_Yadis_PlainHTTPFetcher ( timeout  ) 

Definition at line 29 of file PlainHTTPFetcher.php.


The documentation for this class was generated from the following file: