Public Member Functions

Services_Yadis_HTTPFetcher Class Reference

Inheritance diagram for Services_Yadis_HTTPFetcher:
Services_Yadis_ParanoidHTTPFetcher Services_Yadis_PlainHTTPFetcher

Public Member Functions

 allowedURL ($url)
 URLHasAllowedScheme ($url)
 _findRedirect ($headers)
 get ($url, $headers)

Detailed Description

Definition at line 35 of file HTTPFetcher.php.


Member Function Documentation

_findRedirect ( headers  ) 

private

Definition at line 61 of file HTTPFetcher.php.

allowedURL ( url  ) 

Return whether a URL should be allowed. Override this method to conform to your local policy.

By default, will attempt to fetch any http or https URL.

Definition at line 43 of file HTTPFetcher.php.

get ( url,
headers 
)

Fetches the specified URL using optional extra headers and returns the server's response.

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 in Services_Yadis_ParanoidHTTPFetcher, and Services_Yadis_PlainHTTPFetcher.

Definition at line 84 of file HTTPFetcher.php.

URLHasAllowedScheme ( url  ) 

Is this an http or https URL?

private

Definition at line 53 of file HTTPFetcher.php.


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