[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/laminas/laminas-diactoros/src/ -> ServerRequest.php (summary)

(no description)

Copyright: https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
License: https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
File Size: 256 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ServerRequest:: (15 methods):
  __construct()
  getServerParams()
  getUploadedFiles()
  withUploadedFiles()
  getCookieParams()
  withCookieParams()
  getQueryParams()
  withQueryParams()
  getParsedBody()
  withParsedBody()
  getAttributes()
  getAttribute()
  withAttribute()
  withoutAttribute()
  validateUploadedFiles()


Class: ServerRequest  - X-Ref

Server-side HTTP request

Extends the Request definition to add methods for accessing incoming data,
specifically server parameters, cookies, matched path parameters, query
string arguments, body parameters, and upload file information.

"Attributes" are discovered via decomposing the request (and usually
specifically the URI path), and typically will be injected by the application.

Requests are considered immutable; all methods that might change state are
implemented such that they retain the internal state of the current
message and return a new instance that contains the changed state.
__construct(array $serverParams = [],array $uploadedFiles = [],$uri = null,string $method = null,$body = 'php:array $headers = [],array $cookies = [],array $queryParams = [],$parsedBody = null,string $protocol = '1.1')   X-Ref

param: array $serverParams Server parameters, typically from $_SERVER
param: array $uploadedFiles Upload file information, a tree of UploadedFiles
param: null|string|UriInterface $uri URI for the request, if any.
param: null|string $method HTTP method for the request, if any.
param: string|resource|StreamInterface $body Message body, if any.
param: array $headers Headers for the message, if any.
param: array $cookies Cookies for the message, if any.
param: array $queryParams Query params for the message, if any.
param: null|array|object $parsedBody The deserialized body parameters, if any.
param: string $protocol HTTP protocol version.

getServerParams()   X-Ref
{@inheritdoc}


getUploadedFiles()   X-Ref
{@inheritdoc}


withUploadedFiles(array $uploadedFiles)   X-Ref
{@inheritdoc}


getCookieParams()   X-Ref
{@inheritdoc}


withCookieParams(array $cookies)   X-Ref
{@inheritdoc}


getQueryParams()   X-Ref
{@inheritdoc}


withQueryParams(array $query)   X-Ref
{@inheritdoc}


getParsedBody()   X-Ref
{@inheritdoc}


withParsedBody($data)   X-Ref
{@inheritdoc}


getAttributes()   X-Ref
{@inheritdoc}


getAttribute($attribute, $default = null)   X-Ref
{@inheritdoc}


withAttribute($attribute, $value)   X-Ref
{@inheritdoc}


withoutAttribute($attribute)   X-Ref
{@inheritdoc}


validateUploadedFiles(array $uploadedFiles)   X-Ref
Recursively validate the structure in an uploaded files array.




Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer