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. |