Request
HTTP Request
Information about the client's HTTP request
Methods
Invoke via \Framework\HTTP\Request::method()
Click a method name to copy it.
Returns the visitors country from their IP address
Return
Country code (3 chars)
Returns the URI (path + query string) of the current request, without scheme or host
Use this when you need a relative path, e.g. navigation active states, breadcrumb trails, or route matching.
Example: /products/shoes/?color=red
Return
URI path and query string
Returns the current URI without a query string
Returns the current query string
Returns the full URL of the current request, including scheme and host
Use this when you need an absolute URL, e.g. social sharing links, redirects, or canonical URLs.
Example: https://www.example.com/products/shoes/?color=red
Return
Full URL, or null if not a web request
Returns the current host / domain
Returns the remote ip of the current user