Request Trait
Additional methods to make a PSR-7 Request class compliant with the framework's own RequestInterface.
Methods | ||
---|---|---|
public
|
getIPAddress(): string
|
# |
public
|
getServer(array|string|null $index = null, int|null $filter = null, array|int|null $flags = null): mixed
|
# |
public
|
getEnv(array|string|null $index = null, int|null $filter = null, array|int|null $flags = null): mixed
|
# |
public
|
setGlobal(string $method, mixed $value): $this
|
# |
public
|
fetchGlobal(
string $method,
array|string|null $index = null,
int|null $filter = null,
array|int|null $flags = null,
): array|bool|string|null
|
# |
protected
|
populateGlobals(string $method)
|
# |
Properties | |||
---|---|---|---|
protected
|
string
|
$ipAddress = ''
|
# |
protected
|
array
|
$globals = []
|
# |