Methods summary
public
|
#
__construct( Nette\Http\UrlScript $url, $query = NULL, $post = NULL, $files = NULL, $cookies = NULL, $headers = NULL, $method = NULL, $remoteAddress = NULL, $remoteHost = NULL, $rawBodyCallback = NULL )
|
public
Nette\Http\Request
|
#
getUrl( )
Returns URL object.
Returns
Implementation of
|
public
mixed
|
#
getQuery( string $key = NULL, mixed $default = NULL )
Returns variable provided to the script via URL query ($_GET). If no key is
passed, returns the entire array.
Returns variable provided to the script via URL query ($_GET). If no key is
passed, returns the entire array.
Parameters
Returns
mixed mixed
Implementation of
|
public
mixed
|
#
getPost( string $key = NULL, mixed $default = NULL )
Returns variable provided to the script via POST method ($_POST). If no key
is passed, returns the entire array.
Returns variable provided to the script via POST method ($_POST). If no key
is passed, returns the entire array.
Parameters
Returns
mixed mixed
Implementation of
|
public
Nette\Http\FileUpload |null
|
#
getFile( string $key )
Returns uploaded file.
Parameters
Returns
Implementation of
|
public
array
|
#
getFiles( )
Returns uploaded files.
Returns
array array
Implementation of
|
public
mixed
|
#
getCookie( string $key, mixed $default = NULL )
Returns variable provided to the script via HTTP cookies.
Returns variable provided to the script via HTTP cookies.
Parameters
Returns
mixed mixed
Implementation of
|
public
array
|
#
getCookies( )
Returns variables provided to the script via HTTP cookies.
Returns variables provided to the script via HTTP cookies.
Returns
array array
Implementation of
|
public
string
|
#
getMethod( )
Returns HTTP request method (GET, POST, HEAD, PUT, ...). The method is
case-sensitive.
Returns HTTP request method (GET, POST, HEAD, PUT, ...). The method is
case-sensitive.
Returns
string string
Implementation of
|
public
boolean
|
#
isMethod( string $method )
Checks if the request method is the given one.
Checks if the request method is the given one.
Parameters
Returns
boolean bool
Implementation of
|
public
|
|
public
Nette\Http\Url |null
|
|
public
boolean
|
#
isSecured( )
Is the request is sent via secure channel (https).
Is the request is sent via secure channel (https).
Returns
boolean bool
Implementation of
|
public
boolean
|
#
isAjax( )
Is AJAX request?
Returns
boolean bool
Implementation of
|
public
string|null
|
#
getRemoteAddress( )
Returns the IP address of the remote client.
Returns the IP address of the remote client.
Returns
string|null string|NULL
Implementation of
|
public
string|null
|
#
getRemoteHost( )
Returns the host of the remote client.
Returns the host of the remote client.
Returns
string|null string|NULL
Implementation of
|
public
string|null
|
#
getRawBody( )
Returns raw content of HTTP request body.
Returns raw content of HTTP request body.
Returns
string|null string|NULL
Implementation of
|
public
string|null
|
#
detectLanguage( array $langs )
Parse Accept-Language header and returns preferred language.
Parse Accept-Language header and returns preferred language.
Parameters
Returns
string|null string|NULL
|