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\UrlScript
|
#
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 |array|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 sent via secure channel (https)?
Is the request sent via secure channel (https)?
Returns
boolean bool
Implementation of
|
public
boolean
|
#
isSameSite( )
Is the request sent from the same origin?
Is the request sent from the same origin?
Returns
boolean bool
|
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
|