Method | Description | |
---|---|---|
__construct ( array $serverParams = [], array $uploadedFiles = [], null | string $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://input', array $headers = [] ) | ||
getAttribute ( $attribute, $default = null ) | ||
getAttributes ( ) | ||
getCookieParams ( ) | ||
getMethod ( ) : string | Proxy to receive the request method. | |
getParsedBody ( ) | ||
getQueryParams ( ) | ||
getServerParams ( ) | ||
getUploadedFiles ( ) | ||
withAttribute ( $attribute, $value ) | ||
withCookieParams ( array $cookies ) | ||
withMethod ( string $method ) : self | Set the request method. | |
withParsedBody ( $data ) | ||
withQueryParams ( array $query ) | ||
withUploadedFiles ( array $uploadedFiles ) | ||
withoutAttribute ( $attribute ) |
Method | Description | |
---|---|---|
getStream ( string | resource | Psr\Http\Message\StreamInterface $stream ) : void | Set the body stream | |
validateUploadedFiles ( array $uploadedFiles ) | Recursively validate the structure in an uploaded files array. |
public __construct ( array $serverParams = [], array $uploadedFiles = [], null | string $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://input', array $headers = [] ) | ||
$serverParams | array | Server parameters, typically from $_SERVER |
$uploadedFiles | array | Upload file information, a tree of UploadedFiles |
$uri | null | string | URI for the request, if any. |
$method | null | string | HTTP method for the request, if any. |
$body | string | resource | Psr\Http\Message\StreamInterface | Message body, if any. |
$headers | array | Headers for the message, if any. |
public withMethod ( string $method ) : self | ||
$method | string | |
return | self |
public withUploadedFiles ( array $uploadedFiles ) | ||
$uploadedFiles | array |