[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/vendor/guzzlehttp/psr7/src/ -> ServerRequest.php (summary)

(no description)

File Size: 379 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ServerRequest:: (20 methods):
  __construct()
  normalizeFiles()
  createUploadedFileFromSpec()
  normalizeNestedFileSpec()
  fromGlobals()
  extractHostAndPortFromAuthority()
  getUriFromGlobals()
  getServerParams()
  getUploadedFiles()
  withUploadedFiles()
  getCookieParams()
  withCookieParams()
  getQueryParams()
  withQueryParams()
  getParsedBody()
  withParsedBody()
  getAttributes()
  getAttribute()
  withAttribute()
  withoutAttribute()


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($method,$uri,array $headers = [],$body = null,$version = '1.1',array $serverParams = [])   X-Ref

param: string                               $method       HTTP method
param: string|UriInterface                  $uri          URI
param: array                                $headers      Request headers
param: string|resource|StreamInterface|null $body         Request body
param: string                               $version      Protocol version
param: array                                $serverParams Typically the $_SERVER superglobal

normalizeFiles(array $files)   X-Ref
Return an UploadedFile instance array.

param: array $files A array which respect $_FILES structure
return: array

createUploadedFileFromSpec(array $value)   X-Ref
Create and return an UploadedFile instance from a $_FILES specification.

If the specification represents an array of values, this method will
delegate to normalizeNestedFileSpec() and return that return value.

param: array $value $_FILES struct
return: array|UploadedFileInterface

normalizeNestedFileSpec(array $files = [])   X-Ref
Normalize an array of file specifications.

Loops through all nested files and returns a normalized array of
UploadedFileInterface instances.

param: array $files
return: UploadedFileInterface[]

fromGlobals()   X-Ref
Return a ServerRequest populated with superglobals:
$_GET
$_POST
$_COOKIE
$_FILES
$_SERVER

return: ServerRequestInterface

extractHostAndPortFromAuthority($authority)   X-Ref
No description

getUriFromGlobals()   X-Ref
Get a Uri populated with values from $_SERVER.

return: UriInterface

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}




Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1