PHP 클래스 Auth_Yadis_HTTPFetcher

파일 보기 프로젝트 열기: openid/php-openid

공개 프로퍼티들

프로퍼티 타입 설명
$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