ServerRequestFactory Class
Aurora\Http\Factory Namespace
Interfaces
- I ServerRequestFactoryInterface
Methods
createServerRequest
Create a new server request
Parameters
-
string
$method
— The HTTP method associated with the request -
mixed
$uri
— The URI associated with the request -
array
$serverParams
— Array of SAPI parameters with which to seed the generated request instance
Return Value
\ServerRequestInterface
Signature
public function createServerRequest(string $method, mixed $uri, array $serverParams = []): Psr\Http\Message\ServerRequestInterface