Interface RequestInterface

Summary

Fully Qualified Name: CodeIgniter\HTTP\RequestInterface

Description

Expected behavior of an HTTP request

Methods

Name Description Defined By
getIPAddress() Gets the user's IP address. RequestInterface
getMethod() Get the request method. RequestInterface
getServer() Fetch an item from the $_SERVER array. RequestInterface
isValidIP() Validate an IP address RequestInterface

Method Details

getIPAddress()

Gets the user's IP address.

Returns: string IP address

getMethod()

Get the request method.

Parameter Name Type Description
$upper bool Whether

Returns: string

getServer()

Fetch an item from the $_SERVER array.

Parameter Name Type Description
$index string Index
$filter null A

Returns: mixed

isValidIP()

Validate an IP address

Parameter Name Type Description
$ip string IP
$which string IP

Returns: bool

Top