PHP Class Auth_Yadis_HTTPFetcher

Datei anzeigen Open project: openid/php-openid

Public Properties

Property Type Description
$timeout

Public Methods

Method Description
URLHasAllowedScheme ( $url ) Is this an http or https URL?
_findRedirect ( $headers, $url )
allowedURL ( $url ) Return whether a URL should be allowed. Override this method to conform to your local policy.
canFetchURL ( $url ) : boolean 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.
get ( string $url, $headers = null ) : mixed Fetches the specified URL using optional extra headers and returns the server's response.
isHTTPS ( $url ) Is this an https URL?
supportsSSL ( ) : boolean Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment.

Method Details

URLHasAllowedScheme() public method

Is this an http or https URL?
public URLHasAllowedScheme ( $url )

_findRedirect() public method

public _findRedirect ( $headers, $url )

allowedURL() public method

By default, will attempt to fetch any http or https URL.
public allowedURL ( $url )

canFetchURL() public method

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.
public canFetchURL ( $url ) : boolean
return boolean

get() public method

Fetches the specified URL using optional extra headers and returns the server's response.
public get ( string $url, $headers = null ) : mixed
$url string The URL to be fetched.
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.

isHTTPS() public method

Is this an https URL?
public isHTTPS ( $url )

supportsSSL() public method

Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment.
public supportsSSL ( ) : boolean
return boolean $support True if this fetcher supports HTTPS fetching; false if not.

Property Details

$timeout public_oe property

public $timeout