Lizmap Web Client Master

ProxyResponse
in package

Table of Contents

Properties

$body  : StreamInterface
$code  : int
$mime  : string

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

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
StreamInterface

getBodyAsString()

Get the response's body as string.

public getBodyAsString() : string
Return values
string

getCode()

Get the HTTP status code of the response.

public getCode() : int
Return values
int

getMime()

Get the MIME type of the response.

public getMime() : string
Return values
string

        
On this page

Search results