[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/openid/Auth/Yadis/ -> HTTPFetcher.php (summary)

This module contains the HTTP fetcher interface PHP versions 4 and 5

Author: JanRain, Inc. <openid@janrain.com>
Copyright: 2005-2008 Janrain, Inc.
License: http://www.apache.org/licenses/LICENSE-2.0 Apache
File Size: 150 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

Auth_Yadis_HTTPResponse:: (1 method):
  Auth_Yadis_HTTPResponse()

Auth_Yadis_HTTPFetcher:: (7 methods):
  canFetchURL()
  allowedURL()
  supportsSSL()
  isHTTPS()
  URLHasAllowedScheme()
  _findRedirect()
  get()


Class: Auth_Yadis_HTTPResponse  - X-Ref

Auth_Yadis_HTTPResponse($final_url = null, $status = null,$headers = null, $body = null)   X-Ref
No description

Class: Auth_Yadis_HTTPFetcher  - X-Ref

This class is the interface for HTTP fetchers the Yadis library
uses.  This interface is only important if you need to write a new
fetcher for some reason.

canFetchURL($url)   X-Ref
Return whether a URL can be fetched.  Returns false if the URL
scheme is not allowed or is not supported by this fetcher
implementation; returns true otherwise.

return: bool

allowedURL($url)   X-Ref
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.

supportsSSL()   X-Ref
Does this fetcher implementation (and runtime) support fetching
HTTPS URLs?  May inspect the runtime environment.

return: bool $support True if this fetcher supports HTTPS

isHTTPS($url)   X-Ref
Is this an https URL?


URLHasAllowedScheme($url)   X-Ref
Is this an http or https URL?


_findRedirect($headers)   X-Ref


get($url, $headers)   X-Ref
Fetches the specified URL using optional extra headers and
returns the server's response.

param: string $url The URL to be fetched.
param: array $extra_headers An array of header strings
return: mixed $result An array of ($code, $url, $headers,



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1