$responseCodes
$responseCodes : array
Response codes & messages
HTTP client response class
$body : \Pop\Mime\Part\Body
Body
setVersion(float|string $version) : \Pop\Http\AbstractResponse
Set the response version
float|string | $version |
setCode(integer $code = 200) : \Pop\Http\AbstractResponse
Set the response code
integer | $code |
setMessage(string $message = null) : \Pop\Http\AbstractResponse
Set the response message
string | $message |
addHeader(\Pop\Mime\Part\Header|string $header, string $value = null) : \Pop\Http\AbstractHttp
Add a header
\Pop\Mime\Part\Header|string | $header | |
string | $value |
addHeaders(array $headers) : \Pop\Http\AbstractHttp
Add all headers
array | $headers |
removeHeader(string $name) : \Pop\Http\AbstractHttp
Remove a header
string | $name |
removeHeaders() : \Pop\Http\AbstractHttp
Remove all headers
setBody(string|\Pop\Mime\Part\Body $body) : \Pop\Http\AbstractHttp
Set the body
string|\Pop\Mime\Part\Body | $body |
getBody() : \Pop\Mime\Part\Body
Get the body
decodeBodyContent(string $body = null) : \Pop\Mime\Part\Body
Decode the body
string | $body |
removeBody() : \Pop\Http\AbstractHttp
Remove the body