phasync\Psr\ServerRequest class

Documentation

Documentation missing - No docblock found for this class.

Inheritance

Extends: phasync\Psr\Request

Implements: Psr\Http\Message\RequestInterface Psr\Http\Message\MessageInterface Psr\Http\Message\ServerRequestInterface

Properties (10)

protected array $serverParams
protected array $cookieParams
protected array $queryParams
protected array $uploadedFiles
protected mixed $parsedBody
protected array $attributes
protected string $protocolVersion
protected Psr\Http\Message\StreamInterface $body
protected array $headers
protected array $headerCases

Methods (36)

which to seed the generated request instance

Retrieve server parameters.

Retrieve cookies.

Return an instance with the specified cookies.

Retrieve query string arguments.

Return an instance with the specified query string arguments.

Retrieve normalized file upload data.

Create a new instance with the specified uploaded files.

Retrieve any parameters provided in the request body.

Return an instance with the specified body parameters.

Retrieve attributes derived from the request.

Retrieve a single derived request attribute.

Return an instance with the specified derived request attribute.

Return an instance that removes the specified derived request attribute.

Validate an array as per the {@see self::withUploadedFiles()} function.

Ensures that the passed query params adhere to the shape of

public getRequestTarget()
inherited from phasync\Psr\Request

Retrieves the message's request target.

public withRequestTarget()
inherited from phasync\Psr\Request

Documentation missing

public getMethod()
inherited from phasync\Psr\Request

Documentation missing

public withMethod()
inherited from phasync\Psr\Request

Documentation missing

public getUri()
inherited from phasync\Psr\Request

Documentation missing

public withUri()
inherited from phasync\Psr\Request

Documentation missing

public __clone()
inherited from phasync\Psr\Request

Documentation missing

protected MessageTrait()
inherited from phasync\Psr\Request

Configure the message trait.

public getProtocolVersion()
inherited from phasync\Psr\Request

Retrieves the HTTP protocol version as a string.

public withProtocolVersion()
inherited from phasync\Psr\Request

Return an instance with the specified HTTP protocol version.

public getHeaders()
inherited from phasync\Psr\Request

Get message headers

public hasHeader()
inherited from phasync\Psr\Request

Checks if a header exists by the given case-insensitive name.

public getHeader()
inherited from phasync\Psr\Request

Retrieves a message header value by the given case-insensitive name.

public getHeaderLine()
inherited from phasync\Psr\Request

Retrieves a comma-separated string of the values for a single header.

public withHeader()
inherited from phasync\Psr\Request

Return an instance with the provided value replacing the specified header.

public withAddedHeader()
inherited from phasync\Psr\Request

Return an instance with the specified header appended with the given value.

public withoutHeader()
inherited from phasync\Psr\Request

Return an instance without the specified header.

public getBody()
inherited from phasync\Psr\Request

Gets the body of the message.

public withBody()
inherited from phasync\Psr\Request

Return an instance with the specified message body.

Source

src/Psr/ServerRequest.php:8-343