\Qiniu\HttpResponse

HTTP response Object

Summary

Methods
Properties
Constants
__construct()
json()
xVia()
xLog()
xReqId()
ok()
needRetry()
$statusCode
$headers
$body
$error
$duration
No constants found
No protected methods found
No protected properties found
N/A
bodyJson()
isJson()
$jsonData
$statusTexts
N/A

Properties

$statusCode

$statusCode

$headers

$headers

$body

$body

$error

$error

$duration

$duration

$jsonData

$jsonData

$statusTexts

$statusTexts : array

Type

array — Mapping of status codes to reason phrases

Methods

__construct()

__construct(int  $code, float  $duration, array  $headers = array(), string  $body = null, string  $error = null) : mixed

Parameters

int $code

状态码

float $duration

请求时长

array $headers

响应头部

string $body

响应内容

string $error

错误描述

Returns

mixed —

json()

json() : mixed

Returns

mixed —

xVia()

xVia() : mixed

Returns

mixed —

xLog()

xLog() : mixed

Returns

mixed —

xReqId()

xReqId() : mixed

Returns

mixed —

ok()

ok() : mixed

Returns

mixed —

needRetry()

needRetry() : mixed

Returns

mixed —

bodyJson()

bodyJson(mixed  $body) : mixed

Parameters

mixed $body

Returns

mixed —

isJson()

isJson(mixed  $headers) : mixed

Parameters

mixed $headers

Returns

mixed —