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.
파일 보기
프로젝트 열기: ScriptFUSION/Porter
1 사용 예제들
공개 메소드들
비공개 메소드들
메소드 상세
public __construct ( HttpOptions $options = null ) |
$options |
HttpOptions |
|
public fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string |
$source |
string |
Source. |
$options |
ScriptFUSION\Porter\Options\EncapsulatedOptions |
Optional. Options. |
리턴 |
string |
Response. |
Gets the maximum number of fetch attempts
Sets the maximum number of fetch attempts.