PHP Класс Auth_Yadis_HTTPFetcher

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$timeout

Открытые методы

Метод Описание
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.

Описание методов

URLHasAllowedScheme() публичный Метод

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

_findRedirect() публичный Метод

public _findRedirect ( $headers, $url )

allowedURL() публичный Метод

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

canFetchURL() публичный Метод

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
Результат boolean

get() публичный Метод

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.
Результат 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() публичный Метод

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

supportsSSL() публичный Метод

Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment.
public supportsSSL ( ) : boolean
Результат boolean $support True if this fetcher supports HTTPS fetching; false if not.

Описание свойств

$timeout публичное свойство

public $timeout