\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 : 

Type

$headers

$headers : 

Type

$body

$body : 

Type

$error

$error : 

Type

$duration

$duration : 

Type

$jsonData

$jsonData : 

Type

$statusTexts

$statusTexts : array

Type

array — Mapping of status codes to reason phrases

Methods

__construct()

__construct(integer  $code, double  $duration, array  $headers = array(), string  $body = null, string  $error = null) 

Parameters

integer $code

状态码

double $duration

请求时长

array $headers

响应头部

string $body

响应内容

string $error

错误描述

json()

json() 

xVia()

xVia() 

xLog()

xLog() 

xReqId()

xReqId() 

ok()

ok() 

needRetry()

needRetry() 

bodyJson()

bodyJson(  $body) 

Parameters

$body

isJson()

isJson(  $headers) 

Parameters

$headers