Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Context
  • FileUpload
  • Helpers
  • Request
  • RequestFactory
  • Response
  • Session
  • SessionSection
  • Url
  • UrlScript
  • UserStorage

Interfaces

  • IRequest
  • IResponse
  • ISessionStorage
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Interface IRequest

IHttpRequest provides access scheme for request sent via HTTP.

Direct known implementers

Nette\Http\Request
Namespace: Nette\Http
Located at Http/IRequest.php
Methods summary
public Nette\Http\UrlScript
# getUrl( )

Returns URL object.

Returns URL object.

Returns

Nette\Http\UrlScript
UrlScript
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

$key
key
$default
value

Returns

mixed
mixed
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

$key
key
$default
value

Returns

mixed
mixed
public Nette\Http\FileUpload|null
# getFile( string $key )

Returns uploaded file.

Returns uploaded file.

Parameters

$key
key

Returns

Nette\Http\FileUpload|null
FileUpload|NULL
public array
# getFiles( )

Returns uploaded files.

Returns uploaded files.

Returns

array
array
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

$key
key
$default
value

Returns

mixed
mixed
public array
# getCookies( )

Returns variables provided to the script via HTTP cookies.

Returns variables provided to the script via HTTP cookies.

Returns

array
array
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
public boolean
# isMethod( string $method )

Checks HTTP request method.

Checks HTTP request method.

Parameters

$method

Returns

boolean
bool
public mixed
# getHeader( string $header, mixed $default = NULL )

Return the value of the HTTP header. Pass the header name as the plain, HTTP-specified header name (e.g. 'Accept-Encoding').

Return the value of the HTTP header. Pass the header name as the plain, HTTP-specified header name (e.g. 'Accept-Encoding').

Parameters

$header
$default

Returns

mixed
mixed
public array
# getHeaders( )

Returns all HTTP headers.

Returns all HTTP headers.

Returns

array
array
public boolean
# isSecured( )

Is the request is sent via secure channel (https).

Is the request is sent via secure channel (https).

Returns

boolean
bool
public boolean
# isAjax( )

Is AJAX request?

Is AJAX request?

Returns

boolean
bool
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
public string|null
# getRemoteHost( )

Returns the host of the remote client.

Returns the host of the remote client.

Returns

string|null
string|NULL
public string|null
# getRawBody( )

Returns raw content of HTTP request body.

Returns raw content of HTTP request body.

Returns

string|null
string|NULL
Constants summary
string GET

HTTP request method

HTTP request method

#'GET'
string POST

HTTP request method

HTTP request method

#'POST'
string HEAD

HTTP request method

HTTP request method

#'HEAD'
string PUT

HTTP request method

HTTP request method

#'PUT'
string DELETE

HTTP request method

HTTP request method

#'DELETE'
string PATCH

HTTP request method

HTTP request method

#'PATCH'
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0