Request

Collects information about requests handled by the HotMelt dispatch machinery.

property-read

The root URL (comprised of only the protocol and host name) of the request.

property-read

The full URL of the

Methods

Return request information based on the `$_SERVER` global.

httpServerRequest() : \HotMelt\Request
static final

Response

\HotMelt\Request

Properties

The protocol for the request, i.e. `'http'` or `'https'`.

protocol : 
type

string

The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host.

serverName : 
type

string

Which request method was used to access the page; i.e. `'GET'`, `'HEAD'`, `'POST'`, `'PUT'`.

requestMethod : 
type

string

The query string, if any, via which the page was accessed.

queryString : 
type

string

The URI which was given in order to access this page; for instance, `'/index.html'`.

requestURI : 
type

string

Contents of the `Accept:` header from the current request, if there is one.

httpAccept : 
type

string

Redirect URL. Set only by some servers, e.g. Apache.

redirectURL : 
type

string

rootURL

rootURL : string

The root URL (comprised of only the protocol and host name) of the request.

Type(s)

string

url

url : string

The full URL of the

Type(s)

string