class ServerRequest implements ServerRequestInterface (View source)

Methods

__construct(ServerRequestInterface $serverRequest)

No description

getProtocolVersion()

No description

withProtocolVersion($version)

No description

getHeaders()

No description

hasHeader($name)

No description

getHeader($name)

No description

getHeaderLine($name)

No description

withHeader($name, $value)

No description

withAddedHeader($name, $value)

No description

withoutHeader($name)

No description

getBody()

No description

withBody(StreamInterface $body)

No description

getRequestTarget()

No description

withRequestTarget($requestTarget)

No description

getMethod()

No description

withMethod($method)

No description

getUri()

No description

withUri(UriInterface $uri, $preserveHost = false)

No description

getServerParams()

No description

getCookieParams()

No description

withCookieParams(array $cookies)

No description

getQueryParams()

No description

withQueryParams(array $query)

No description

getUploadedFiles()

No description

withUploadedFiles(array $uploadedFiles)

No description

getParsedBody()

No description

withParsedBody($data)

No description

getAttributes()

No description

getAttribute($name, $default = null)

No description

withAttribute($name, $value)

No description

withoutAttribute($name)

No description

mixed
getParam(string $param, mixed $default = null)

No description

mixed
getParsedBodyParam(string $param, mixed $default = null)

No description

bool
isPost()

No description

Details

final __construct(ServerRequestInterface $serverRequest)

No description

Parameters

ServerRequestInterface $serverRequest

getProtocolVersion()

No description

withProtocolVersion($version)

No description

Parameters

$version

getHeaders()

No description

hasHeader($name)

No description

Parameters

$name

getHeader($name)

No description

Parameters

$name

getHeaderLine($name)

No description

Parameters

$name

withHeader($name, $value)

No description

Parameters

$name
$value

withAddedHeader($name, $value)

No description

Parameters

$name
$value

withoutHeader($name)

No description

Parameters

$name

getBody()

No description

withBody(StreamInterface $body)

No description

Parameters

StreamInterface $body

getRequestTarget()

No description

withRequestTarget($requestTarget)

No description

Parameters

$requestTarget

getMethod()

No description

withMethod($method)

No description

Parameters

$method

getUri()

No description

withUri(UriInterface $uri, $preserveHost = false)

No description

Parameters

UriInterface $uri
$preserveHost

getServerParams()

No description

getCookieParams()

No description

withCookieParams(array $cookies)

No description

Parameters

array $cookies

getQueryParams()

No description

withQueryParams(array $query)

No description

Parameters

array $query

getUploadedFiles()

No description

withUploadedFiles(array $uploadedFiles)

No description

Parameters

array $uploadedFiles

getParsedBody()

No description

withParsedBody($data)

No description

Parameters

$data

getAttributes()

No description

getAttribute($name, $default = null)

No description

Parameters

$name
$default

withAttribute($name, $value)

No description

Parameters

$name
$value

withoutAttribute($name)

No description

Parameters

$name

mixed getParam(string $param, mixed $default = null)

No description

Parameters

string $param
mixed $default

Return Value

mixed

mixed getParsedBodyParam(string $param, mixed $default = null)

No description

Parameters

string $param
mixed $default

Return Value

mixed

bool isPost()

No description

Return Value

bool