Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NFtp
  • NHtml
  • NHttpContext
  • NHttpRequest
  • NHttpResponse
  • NHttpUploadedFile
  • NSession
  • NSessionNamespace
  • NUri
  • NUriScript
  • NUser

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • NFtpException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Interface IHttpRequest

IHttpRequest provides access scheme for request sent via HTTP.

Direct known implementers

NHttpRequest
Package: Nette\Web
Author: David Grudl
Located at Web/IHttpRequest.php
Methods summary
public NUriScript
# getUri( )

Returns URL object.

Returns URL object.

Returns

NUriScript
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
string
key
$default
mixed
default value

Returns

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
string
key
$default
mixed
default value

Returns

mixed
public string
# getPostRaw( )

Returns HTTP POST data in raw format (only for "application/x-www-form-urlencoded").

Returns HTTP POST data in raw format (only for "application/x-www-form-urlencoded").

Returns

string
public NHttpUploadedFile
# getFile( string $key )

Returns uploaded file.

Returns uploaded file.

Parameters

$key
string
key (or more keys)

Returns

NHttpUploadedFile
public array
# getFiles( )

Returns uploaded files.

Returns uploaded files.

Returns

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
string
key
$default
mixed
default value

Returns

mixed
public array
# getCookies( )

Returns variables provided to the script via HTTP cookies.

Returns variables provided to the script via HTTP cookies.

Returns

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

Checks HTTP request method.

Checks HTTP request method.

Parameters

$method
string

Returns

boolean
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
string
$default
mixed

Returns

mixed
public array
# getHeaders( )

Returns all HTTP headers.

Returns all HTTP headers.

Returns

array
public boolean
# isSecured( )

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

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

Returns

boolean
public boolean
# isAjax( )

Is AJAX request?

Is AJAX request?

Returns

boolean
public string
# getRemoteAddress( )

Returns the IP address of the remote client.

Returns the IP address of the remote client.

Returns

string
public string
# getRemoteHost( )

Returns the host of the remote client.

Returns the host of the remote client.

Returns

string
Constants summary
string GET 'GET'
#

HTTP request method

HTTP request method

string POST 'POST'
#

HTTP request method

HTTP request method

string HEAD 'HEAD'
#

HTTP request method

HTTP request method

string PUT 'PUT'
#

HTTP request method

HTTP request method

string DELETE 'DELETE'
#

HTTP request method

HTTP request method

Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0