ProxyResponse
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- constructor.
- getBodyAsStream() : StreamInterface
- Get the response's body as stream.
- getBodyAsString() : string
- Get the response's body as string.
- getCode() : int
- Get the HTTP status code of the response.
- getMime() : string
- Get the MIME type of the response.
Properties
$body
protected
StreamInterface
$body
the response body as a stream
$code
protected
int
$code
the HTTP status code of the response
$mime
protected
string
$mime
the MIME type of the response
Methods
__construct()
constructor.
public
__construct(int $code, string $mime, StreamInterface $body) : mixed
Parameters
- $code : int
-
the HTTP status code of the response
- $mime : string
-
the MIME type of the response
- $body : StreamInterface
-
the response body as a string
getBodyAsStream()
Get the response's body as stream.
public
getBodyAsStream() : StreamInterface
Return values
StreamInterfacegetBodyAsString()
Get the response's body as string.
public
getBodyAsString() : string
Return values
stringgetCode()
Get the HTTP status code of the response.
public
getCode() : int
Return values
intgetMime()
Get the MIME type of the response.
public
getMime() : string