PHP 클래스 ScriptFUSION\Porter\Net\Http\HttpConnector

Enhanced error reporting is achieved by ignoring HTTP error codes in the wrapper, instead throwing HttpServerException which includes the body of the response in the error message.
상속: extends ScriptFUSION\Porter\Connector\CachingConnector
파일 보기 프로젝트 열기: ScriptFUSION/Porter 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( HttpOptions $options = null )
fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string
getBaseUrl ( ) : string
getTries ( ) : integer Gets the maximum number of fetch attempts
setBaseUrl ( $baseUrl )
setTries ( integer $tries ) Sets the maximum number of fetch attempts.

비공개 메소드들

메소드 설명
getOrCreateUrlBuilder ( )

메소드 상세

__construct() 공개 메소드

public __construct ( HttpOptions $options = null )
$options HttpOptions

fetchFreshData() 공개 메소드

public fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string
$source string Source.
$options ScriptFUSION\Porter\Options\EncapsulatedOptions Optional. Options.
리턴 string Response.

getBaseUrl() 공개 메소드

public getBaseUrl ( ) : string
리턴 string

getTries() 공개 메소드

Gets the maximum number of fetch attempts
public getTries ( ) : integer
리턴 integer

setBaseUrl() 공개 메소드

public setBaseUrl ( $baseUrl )
$baseUrl

setTries() 공개 메소드

Sets the maximum number of fetch attempts.
public setTries ( integer $tries )
$tries integer Maximum fetch attempts.