Skip to content

ServerRequest

Methods

__construct

public __construct(array $serverParams = [], array $uploadedFiles = [], mixed $uri = null, ?string $method = null, mixed $body = 'php://input', array $headers = [], array $cookies = [], array $queryParams = [], mixed $parsedBody = null, string $protocol = '1.1'): mixed

Parameters:

Parameter Type Description
$serverParams array
$uploadedFiles array
$uri mixed
$method ?string
$body mixed
$headers array
$cookies array
$queryParams array
$parsedBody mixed
$protocol string

get

public get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed


Automatically generated on 2025-10-13