public __construct ( array $serverParams = [], array $uploadedFiles = [], null | string | Psr\Http\Message\UriInterface $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://input', array $headers = [], array $cookies = [], array $queryParams = [], null | array | object $parsedBody = null, string $protocol = '1.1' ) | ||
$serverParams | array | Server parameters, typically from $_SERVER |
$uploadedFiles | array | Upload file information, a tree of UploadedFiles |
$uri | null | string | Psr\Http\Message\UriInterface | 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. |
$cookies | array | Cookies for the message, if any. |
$queryParams | array | Query params for the message, if any. |
$parsedBody | null | array | object | The deserialized body parameters, if any. |
$protocol | string | HTTP protocol version. |