__destruct()
__toString()
fromStream()
fromString()
getBody()
getCleanup()
getContent()
getContentLength()
getCookie()
getHeaders()
getMetadata()
getRawBody()
getReasonPhrase()
getStatusCode()
getStream()
getStreamName()
getVersion()
isClientError()
isForbidden()
isInformational()
isNotFound()
isOk()
isRedirect()
isServerError()
isSuccess()
renderStatusLine()
setCleanup()
setContent()
setContentLength()
setHeaders()
setMetadata()
setReasonPhrase()
setStatusCode()
setStream()
setStreamName()
setVersion()
toString()
decodeChunkedBody()
decodeDeflate()
decodeGzip()
readStream()
$cleanup
$content
$contentLength
$contentStreamed
$headers
$metadata
$reasonPhrase
$recommendedReasonPhrases
$statusCode
$stream
$streamName
$version
STATUS_CODE_100
STATUS_CODE_101
STATUS_CODE_102
STATUS_CODE_200
STATUS_CODE_201
STATUS_CODE_202
STATUS_CODE_203
STATUS_CODE_204
STATUS_CODE_205
STATUS_CODE_206
STATUS_CODE_207
STATUS_CODE_208
STATUS_CODE_300
STATUS_CODE_301
STATUS_CODE_302
STATUS_CODE_303
STATUS_CODE_304
STATUS_CODE_305
STATUS_CODE_306
STATUS_CODE_307
STATUS_CODE_400
STATUS_CODE_401
STATUS_CODE_402
STATUS_CODE_403
STATUS_CODE_404
STATUS_CODE_405
STATUS_CODE_406
STATUS_CODE_407
STATUS_CODE_408
STATUS_CODE_409
STATUS_CODE_410
STATUS_CODE_411
STATUS_CODE_412
STATUS_CODE_413
STATUS_CODE_414
STATUS_CODE_415
STATUS_CODE_416
STATUS_CODE_417
STATUS_CODE_418
STATUS_CODE_422
STATUS_CODE_423
STATUS_CODE_424
STATUS_CODE_425
STATUS_CODE_426
STATUS_CODE_428
STATUS_CODE_429
STATUS_CODE_431
STATUS_CODE_500
STATUS_CODE_501
STATUS_CODE_502
STATUS_CODE_503
STATUS_CODE_504
STATUS_CODE_505
STATUS_CODE_506
STATUS_CODE_507
STATUS_CODE_508
STATUS_CODE_511
STATUS_CODE_CUSTOM
VERSION_10
VERSION_11
Represents an HTTP response message as PHP stream resource
__destruct()
__toString() : string
inherited_from | \Zend\Http\AbstractMessage::__toString() |
---|---|
inherited_from | \Zend\Http\Response::__toString() |
string
fromStream(string $responseString, resource $stream) : \Zend\Http\Response\Stream
string
resource
\Zend\Http\Exception\InvalidArgumentException |
|
---|---|
\Zend\Http\Exception\OutOfRangeException |
fromString(string $string) : \Zend\Http\Response
inherited_from | \Zend\Http\Response::fromString() |
---|
string
\Zend\Http\Exception\InvalidArgumentException |
---|
getBody() : string
This method returns the body of the HTTP response (the content), as it should be in it's readable version - that is, after decoding it (if it was decoded), deflating it (if it was gzip compressed), etc.
If you want to get the raw body (as transferred on wire) use $this->getRawBody() instead.
string
getCleanup() : bool
bool
getContent() : mixed
inherited_from | \Zend\Stdlib\Message::getContent() |
---|---|
inherited_from | \Zend\Http\AbstractMessage::getContent() |
inherited_from | \Zend\Http\Response::getContent() |
mixed
getContentLength() : int | null
int
null
getHeaders() : \Zend\Http\Headers
inherited_from | \Zend\Http\AbstractMessage::getHeaders() |
---|---|
inherited_from | \Zend\Http\Response::getHeaders() |
getMetadata(null | string | int $key, null | mixed $default) : mixed
inherited_from | \Zend\Stdlib\Message::getMetadata() |
---|---|
inherited_from | \Zend\Http\AbstractMessage::getMetadata() |
inherited_from | \Zend\Http\Response::getMetadata() |
nullstringint
nullmixed
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
mixed
getRawBody() : string
If the body is encoded (with Transfer-Encoding, not content-encoding - IE "chunked" body), gzip compressed, etc. it will not be decoded.
string
getReasonPhrase() : string
inherited_from | \Zend\Http\Response::getReasonPhrase() |
---|
string
getStatusCode() : int
inherited_from | \Zend\Http\Response::getStatusCode() |
---|
int
getStream() : resource
resource
getStreamName() : string
string
getVersion() : string
inherited_from | \Zend\Http\AbstractMessage::getVersion() |
---|---|
inherited_from | \Zend\Http\Response::getVersion() |
string
isClientError() : bool
inherited_from | \Zend\Http\Response::isClientError() |
---|
bool
isForbidden() : bool
inherited_from | \Zend\Http\Response::isForbidden() |
---|
bool
isInformational() : bool
inherited_from | \Zend\Http\Response::isInformational() |
---|
bool
isNotFound() : bool
inherited_from | \Zend\Http\Response::isNotFound() |
---|
bool
isOk() : bool
inherited_from | \Zend\Http\Response::isOk() |
---|
bool
isRedirect() : bool
inherited_from | \Zend\Http\Response::isRedirect() |
---|
bool
isServerError() : bool
inherited_from | \Zend\Http\Response::isServerError() |
---|
bool
isSuccess() : bool
inherited_from | \Zend\Http\Response::isSuccess() |
---|
bool
renderStatusLine() : string
inherited_from | \Zend\Http\Response::renderStatusLine() |
---|
string
setCleanup(bool $cleanup)
bool
setContent(mixed $value) : \Zend\Stdlib\Message
inherited_from | \Zend\Stdlib\Message::setContent() |
---|---|
inherited_from | \Zend\Http\AbstractMessage::setContent() |
inherited_from | \Zend\Http\Response::setContent() |
mixed
setContentLength(int $contentLength)
int
setHeaders(\Zend\Http\Headers $headers) : \Zend\Http\AbstractMessage
see | \Zend\Http\getHeaders() |
---|---|
inherited_from | \Zend\Http\AbstractMessage::setHeaders() |
inherited_from | \Zend\Http\Response::setHeaders() |
\Zend\Http\Headers
setMetadata(string | int | array | \Traversable $spec, mixed $value) : \Zend\Stdlib\Message
Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container.
inherited_from | \Zend\Stdlib\Message::setMetadata() |
---|---|
inherited_from | \Zend\Http\AbstractMessage::setMetadata() |
inherited_from | \Zend\Http\Response::setMetadata() |
stringintarray\Traversable
mixed
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
setReasonPhrase(string $reasonPhrase) : \Zend\Http\Response
inherited_from | \Zend\Http\Response::setReasonPhrase() |
---|
string
setStatusCode(int $code) : \Zend\Http\Response
inherited_from | \Zend\Http\Response::setStatusCode() |
---|
int
\Zend\Http\Exception\InvalidArgumentException |
---|
setStreamName(string $streamName) : \Zend\Http\Response\Stream
setVersion(string $version) : \Zend\Http\AbstractMessage
inherited_from | \Zend\Http\AbstractMessage::setVersion() |
---|---|
inherited_from | \Zend\Http\Response::setVersion() |
string
(Must be 1.0 or 1.1)
\Zend\Http\Exception\InvalidArgumentException |
---|
toString() : string
inherited_from | \Zend\Http\Response::toString() |
---|
string
decodeChunkedBody(string $body) : string
inherited_from | \Zend\Http\Response::decodeChunkedBody() |
---|
string
\Zend\Http\Exception\RuntimeException |
---|
string
decodeDeflate(string $body) : string
Currently requires PHP with zlib support
inherited_from | \Zend\Http\Response::decodeDeflate() |
---|
string
\Zend\Http\Exception\RuntimeException |
---|
string
decodeGzip(string $body) : string
Currently requires PHP with zlib support
inherited_from | \Zend\Http\Response::decodeGzip() |
---|
string
\Zend\Http\Exception\RuntimeException |
---|
string
readStream() : string
Function reads the remainder of the body from the stream and closes the stream.
string
$cleanup : bool
$content : string
inherited_from | \Zend\Stdlib\Message::$$content |
---|---|
inherited_from | \Zend\Http\AbstractMessage::$$content |
inherited_from | \Zend\Http\Response::$$content |
$contentLength : int
$contentStreamed : int
$headers : \Zend\Http\Headers | null
inherited_from | \Zend\Http\AbstractMessage::$$headers |
---|---|
inherited_from | \Zend\Http\Response::$$headers |
$reasonPhrase : string | null
inherited_from | \Zend\Http\Response::$$reasonPhrase |
---|
$recommendedReasonPhrases : array
inherited_from | \Zend\Http\Response::$$recommendedReasonPhrases |
---|
$statusCode : int
inherited_from | \Zend\Http\Response::$$statusCode |
---|
$stream : resource
$streamName : string
Will be empty if stream is not file-based.
$version : string
inherited_from | \Zend\Http\AbstractMessage::$$version |
---|---|
inherited_from | \Zend\Http\Response::$$version |
STATUS_CODE_100
inherited_from | \Zend\Http\Response::STATUS_CODE_100 |
---|
STATUS_CODE_101
inherited_from | \Zend\Http\Response::STATUS_CODE_101 |
---|
STATUS_CODE_102
inherited_from | \Zend\Http\Response::STATUS_CODE_102 |
---|
STATUS_CODE_200
inherited_from | \Zend\Http\Response::STATUS_CODE_200 |
---|
STATUS_CODE_201
inherited_from | \Zend\Http\Response::STATUS_CODE_201 |
---|
STATUS_CODE_202
inherited_from | \Zend\Http\Response::STATUS_CODE_202 |
---|
STATUS_CODE_203
inherited_from | \Zend\Http\Response::STATUS_CODE_203 |
---|
STATUS_CODE_204
inherited_from | \Zend\Http\Response::STATUS_CODE_204 |
---|
STATUS_CODE_205
inherited_from | \Zend\Http\Response::STATUS_CODE_205 |
---|
STATUS_CODE_206
inherited_from | \Zend\Http\Response::STATUS_CODE_206 |
---|
STATUS_CODE_207
inherited_from | \Zend\Http\Response::STATUS_CODE_207 |
---|
STATUS_CODE_208
inherited_from | \Zend\Http\Response::STATUS_CODE_208 |
---|
STATUS_CODE_300
inherited_from | \Zend\Http\Response::STATUS_CODE_300 |
---|
STATUS_CODE_301
inherited_from | \Zend\Http\Response::STATUS_CODE_301 |
---|
STATUS_CODE_302
inherited_from | \Zend\Http\Response::STATUS_CODE_302 |
---|
STATUS_CODE_303
inherited_from | \Zend\Http\Response::STATUS_CODE_303 |
---|
STATUS_CODE_304
inherited_from | \Zend\Http\Response::STATUS_CODE_304 |
---|
STATUS_CODE_305
inherited_from | \Zend\Http\Response::STATUS_CODE_305 |
---|
STATUS_CODE_306
inherited_from | \Zend\Http\Response::STATUS_CODE_306 |
---|
STATUS_CODE_307
inherited_from | \Zend\Http\Response::STATUS_CODE_307 |
---|
STATUS_CODE_400
inherited_from | \Zend\Http\Response::STATUS_CODE_400 |
---|
STATUS_CODE_401
inherited_from | \Zend\Http\Response::STATUS_CODE_401 |
---|
STATUS_CODE_402
inherited_from | \Zend\Http\Response::STATUS_CODE_402 |
---|
STATUS_CODE_403
inherited_from | \Zend\Http\Response::STATUS_CODE_403 |
---|
STATUS_CODE_404
inherited_from | \Zend\Http\Response::STATUS_CODE_404 |
---|
STATUS_CODE_405
inherited_from | \Zend\Http\Response::STATUS_CODE_405 |
---|
STATUS_CODE_406
inherited_from | \Zend\Http\Response::STATUS_CODE_406 |
---|
STATUS_CODE_407
inherited_from | \Zend\Http\Response::STATUS_CODE_407 |
---|
STATUS_CODE_408
inherited_from | \Zend\Http\Response::STATUS_CODE_408 |
---|
STATUS_CODE_409
inherited_from | \Zend\Http\Response::STATUS_CODE_409 |
---|
STATUS_CODE_410
inherited_from | \Zend\Http\Response::STATUS_CODE_410 |
---|
STATUS_CODE_411
inherited_from | \Zend\Http\Response::STATUS_CODE_411 |
---|
STATUS_CODE_412
inherited_from | \Zend\Http\Response::STATUS_CODE_412 |
---|
STATUS_CODE_413
inherited_from | \Zend\Http\Response::STATUS_CODE_413 |
---|
STATUS_CODE_414
inherited_from | \Zend\Http\Response::STATUS_CODE_414 |
---|
STATUS_CODE_415
inherited_from | \Zend\Http\Response::STATUS_CODE_415 |
---|
STATUS_CODE_416
inherited_from | \Zend\Http\Response::STATUS_CODE_416 |
---|
STATUS_CODE_417
inherited_from | \Zend\Http\Response::STATUS_CODE_417 |
---|
STATUS_CODE_418
inherited_from | \Zend\Http\Response::STATUS_CODE_418 |
---|
STATUS_CODE_422
inherited_from | \Zend\Http\Response::STATUS_CODE_422 |
---|
STATUS_CODE_423
inherited_from | \Zend\Http\Response::STATUS_CODE_423 |
---|
STATUS_CODE_424
inherited_from | \Zend\Http\Response::STATUS_CODE_424 |
---|
STATUS_CODE_425
inherited_from | \Zend\Http\Response::STATUS_CODE_425 |
---|
STATUS_CODE_426
inherited_from | \Zend\Http\Response::STATUS_CODE_426 |
---|
STATUS_CODE_428
inherited_from | \Zend\Http\Response::STATUS_CODE_428 |
---|
STATUS_CODE_429
inherited_from | \Zend\Http\Response::STATUS_CODE_429 |
---|
STATUS_CODE_431
inherited_from | \Zend\Http\Response::STATUS_CODE_431 |
---|
STATUS_CODE_500
inherited_from | \Zend\Http\Response::STATUS_CODE_500 |
---|
STATUS_CODE_501
inherited_from | \Zend\Http\Response::STATUS_CODE_501 |
---|
STATUS_CODE_502
inherited_from | \Zend\Http\Response::STATUS_CODE_502 |
---|
STATUS_CODE_503
inherited_from | \Zend\Http\Response::STATUS_CODE_503 |
---|
STATUS_CODE_504
inherited_from | \Zend\Http\Response::STATUS_CODE_504 |
---|
STATUS_CODE_505
inherited_from | \Zend\Http\Response::STATUS_CODE_505 |
---|
STATUS_CODE_506
inherited_from | \Zend\Http\Response::STATUS_CODE_506 |
---|
STATUS_CODE_507
inherited_from | \Zend\Http\Response::STATUS_CODE_507 |
---|
STATUS_CODE_508
inherited_from | \Zend\Http\Response::STATUS_CODE_508 |
---|
STATUS_CODE_511
inherited_from | \Zend\Http\Response::STATUS_CODE_511 |
---|
STATUS_CODE_CUSTOM
inherited_from | \Zend\Http\Response::STATUS_CODE_CUSTOM |
---|
VERSION_10
inherited_from | \Zend\Http\AbstractMessage::VERSION_10 |
---|---|
inherited_from | \Zend\Http\Response::VERSION_10 |
VERSION_11
inherited_from | \Zend\Http\AbstractMessage::VERSION_11 |
---|---|
inherited_from | \Zend\Http\Response::VERSION_11 |