PHP 클래스 GuzzleHttp\Psr7\Response

상속: implements Psr\Http\Message\ResponseInterface, use trait GuzzleHttp\Psr7\MessageTrait
파일 보기 프로젝트 열기: nystudio107/instantanalytics 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $status = 200, array $headers = [], string | null | resource | Psr\Http\Message\StreamInterface $body = null, string $version = '1.1', string | null $reason = null )
getReasonPhrase ( )
getStatusCode ( )
withStatus ( $code, $reasonPhrase = '' )

메소드 상세

__construct() 공개 메소드

public __construct ( integer $status = 200, array $headers = [], string | null | resource | Psr\Http\Message\StreamInterface $body = null, string $version = '1.1', string | null $reason = null )
$status integer Status code
$headers array Response headers
$body string | null | resource | Psr\Http\Message\StreamInterface Response body
$version string Protocol version
$reason string | null Reason phrase (when empty a default will be used based on the status code)

getReasonPhrase() 공개 메소드

public getReasonPhrase ( )

getStatusCode() 공개 메소드

public getStatusCode ( )

withStatus() 공개 메소드

public withStatus ( $code, $reasonPhrase = '' )