PHP Class Auth_Yadis_HTTPFetcher

Afficher le fichier Open project: openid/php-openid

Méthodes publiques

Свойство Type Description
$timeout

Méthodes publiques

Méthode 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 méthode

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

_findRedirect() public méthode

public _findRedirect ( $headers, $url )

allowedURL() public méthode

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

canFetchURL() public méthode

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
Résultat boolean

get() public méthode

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.
Résultat 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 méthode

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

supportsSSL() public méthode

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

Property Details

$timeout public_oe property

public $timeout