function ServerRequest::__construct
Parameters
string $method HTTP method:
string|UriInterface $uri URI:
(string|string[])[] $headers Request headers:
string|resource|StreamInterface|null $body Request body:
string $version Protocol version:
array $serverParams Typically the $_SERVER superglobal:
Overrides Request::__construct
File
-
vendor/
guzzlehttp/ psr7/ src/ ServerRequest.php, line 67
Class
- ServerRequest
- Server-side HTTP request
Namespace
GuzzleHttp\Psr7Code
public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = []) {
$this->serverParams = $serverParams;
parent::__construct($method, $uri, $headers, $body, $version);
}