function ServerRequestFactoryInterface::createServerRequest
Create a new server request.
Note that server-params are taken precisely as given - no parsing/processing of the given values is performed, and, in particular, no attempt is made to determine the HTTP method or URI, which must be provided explicitly.
Parameters
string $method The HTTP method associated with the request.:
UriInterface|string $uri The URI associated with the request. If: the value is a string, the factory MUST create a UriInterface instance based on it.
array $serverParams Array of SAPI parameters with which to seed: the generated request instance.
Return value
2 methods override ServerRequestFactoryInterface::createServerRequest()
- HttpFactory::createServerRequest in vendor/
guzzlehttp/ psr7/ src/ HttpFactory.php - Create a new server request.
- Psr17Factory::createServerRequest in vendor/
php-http/ discovery/ src/ Psr17Factory.php
File
-
vendor/
psr/ http-factory/ src/ ServerRequestFactoryInterface.php, line 23
Class
Namespace
Psr\Http\MessageCode
public function createServerRequest(string $method, $uri, array $serverParams = []) : ServerRequestInterface;