Methods |
public
|
__construct(App $config = null)
Constructor.
Deprecated
The $config is no longer needed and will be removed in a future version
Parameters
Overrides
Overriden by
|
#
|
public
|
isValidIP(string $ip = null, string $which = null): bool
Validate an IP address
Deprecated
Parameters
$ip |
IP Address
|
$which |
IP protocol: 'ipv4' or 'ipv6'
|
Implements
|
#
|
public
|
getMethod(bool $upper = false): string
Get the request method.
Deprecated
The $upper functionality will be removed and this will revert to its PSR-7 equivalent
Parameters
$upper |
Whether to return in upper or lower case.
|
Overrides
Implements
|
#
|
public
|
setMethod(string $method): $this
Sets the request method. Used when spoofing the request.
Sets the request method. Used when spoofing the request.
Deprecated
Use withMethod() instead for immutability
Overrides
|
#
|
public
|
withMethod(string $method): static
Returns an instance with the specified method.
Returns an instance with the specified method.
Parameters
$method |
Case-sensitive method.
|
Overrides
Implements
|
#
|
public
|
getUri(): URI
Retrieves the URI instance.
Retrieves the URI instance.
Overrides
Implements
|
#
|