A

IResponse::addHeader() — Method in class IResponse

Adds HTTP header.

$ Request#ajaxProperty in class Request
Response::addHeader() — Method in class Response

Sends an HTTP header and doesn't overwrite previously sent header of the same name.

Session::autoStart() — Method in class Session
$ Url#absoluteUrlProperty in class Url
$ Url#authorityProperty in class Url
Url::appendQuery() — Method in class Url
$ UrlImmutable#absoluteUrlProperty in class UrlImmutable
$ UrlImmutable#authorityProperty in class UrlImmutable

B

$ Url#basePathProperty in class Url
$ Url#baseUrlProperty in class Url
UrlImmutable::build() — Method in class UrlImmutable
$ UrlScript#basePathProperty in class UrlScript
$ UrlScript#baseUrlProperty in class UrlScript
UrlScript::build() — Method in class UrlScript

C

ContextClass in namespace Nette\Http

HTTP-specific tasks.

$ FileUpload#contentTypeProperty in class FileUpload
$ FileUpload#contentsProperty in class FileUpload
$ Request#cookiesProperty in class Request
RequestFactory::createHttpRequest() — Method in class RequestFactory
$ Response#cookieDomainProperty in class Response
$ Response#cookiePathProperty in class Response
$ Response#cookieSecureProperty in class Response
$ Response#cookieHttpOnlyProperty in class Response
Session::close() — Method in class Session

Ends the current session and store session data.

Session::clean() — Method in class Session

Cleans and minimizes meta structures. This method is called automatically on shutdown, do not call it directly.

Url::canonicalize() — Method in class Url

Transforms URL to canonical form.

D

IResponse::deleteCookie() — Method in class IResponse

Deletes a cookie.

IResponse::deleteHeader() — Method in class IResponse
Request::detectLanguage() — Method in class Request

Returns the most preferred language by browser. Uses the Accept-Language header. If no match is reached, it returns null.

Response::deleteHeader() — Method in class Response

Deletes a previously sent HTTP header.

Response::deleteCookie() — Method in class Response

Deletes a cookie.

Session::destroy() — Method in class Session

Destroys all data registered to a session.

$ Url#defaultPortsProperty in class Url

E

$ FileUpload#errorProperty in class FileUpload
Session::exists() — Method in class Session

Does session exist for the current request?

Url::export() — Method in class Url
UrlImmutable::export() — Method in class UrlImmutable

F

FileUploadClass in namespace Nette\Http

Provides access to individual files that have been uploaded by a client.

Helpers::formatDate() — Method in class Helpers

Returns HTTP valid date format.

$ Request#filesProperty in class Request
RequestFactory::fromGlobals() — Method in class RequestFactory

Returns new Request instance, using values from superglobals.

$ Url#fragmentProperty in class Url
$ UrlImmutable#fragmentProperty in class UrlImmutable

G

HttpExtension::getConfigSchema() — Method in class HttpExtension
SessionExtension::getConfigSchema() — Method in class SessionExtension
SessionPanel::getTab() — Method in class SessionPanel

Renders tab.

SessionPanel::getPanel() — Method in class SessionPanel

Renders panel.

Context::getRequest() — Method in class Context
Context::getResponse() — Method in class Context
FileUpload::getName() — Method in class FileUpload
FileUpload::getUntrustedName() — Method in class FileUpload

Returns the original file name as submitted by the browser. Do not trust the value returned by this method.

FileUpload::getSanitizedName() — Method in class FileUpload

Returns the sanitized file name. The resulting name contains only ASCII characters [a-zA-Z0-9.-].

FileUpload::getContentType() — Method in class FileUpload

Detects the MIME content type of the uploaded file based on its signature. Requires PHP extension fileinfo.

FileUpload::getSize() — Method in class FileUpload

Returns the path of the temporary location of the uploaded file.

FileUpload::getTemporaryFile() — Method in class FileUpload

Returns the path of the temporary location of the uploaded file.

FileUpload::getError() — Method in class FileUpload

Returns the error code. It is be one of UPLOAD_ERR_XXX constants.

FileUpload::getImageSize() — Method in class FileUpload

Returns a pair of [width, height] with dimensions of the uploaded image.

FileUpload::getImageFileExtension() — Method in class FileUpload

Returns image file extension based on detected content type (without dot).

FileUpload::getContents() — Method in class FileUpload

Returns the contents of the uploaded file. If the upload was not successful, it returns null.

IRequest::getUrl() — Method in class IRequest

Returns URL object.

IRequest::getQuery() — Method in class IRequest

Returns variable provided to the script via URL query ($_GET).

IRequest::getPost() — Method in class IRequest

Returns variable provided to the script via POST method ($_POST).

IRequest::getFile() — Method in class IRequest

Returns uploaded file.

IRequest::getFiles() — Method in class IRequest

Returns uploaded files.

IRequest::getCookie() — Method in class IRequest

Returns variable provided to the script via HTTP cookies.

IRequest::getCookies() — Method in class IRequest

Returns variables provided to the script via HTTP cookies.

IRequest::getMethod() — Method in class IRequest

Returns HTTP request method (GET, POST, HEAD, PUT, ...). The method is case-sensitive.

IRequest::getHeader() — Method in class IRequest

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

IRequest::getHeaders() — Method in class IRequest

Returns all HTTP headers.

IRequest::getRemoteAddress() — Method in class IRequest

Returns the IP address of the remote client.

IRequest::getRemoteHost() — Method in class IRequest

Returns the host of the remote client.

IRequest::getRawBody() — Method in class IRequest

Returns raw content of HTTP request body.

IRequest::getReferer() — Method in class IRequest

Returns referrer.

IResponse::getCode() — Method in class IResponse

Returns HTTP response code.

IResponse::getHeader() — Method in class IResponse

Returns value of an HTTP header.

IResponse::getHeaders() — Method in class IResponse

Returns a associative array of headers to sent.

Request::getUrl() — Method in class Request

Returns the URL of the request.

Request::getQuery() — Method in class Request

Returns variable provided to the script via URL query ($_GET).

Request::getPost() — Method in class Request

Returns variable provided to the script via POST method ($_POST).

Request::getFile() — Method in class Request

Returns uploaded file.

Request::getFiles() — Method in class Request

Returns tree of upload files in a normalized structure, with each leaf an instance of Nette\Http\FileUpload.

Request::getCookie() — Method in class Request

Returns a cookie or null if it does not exist.

Request::getCookies() — Method in class Request

Returns all cookies.

Request::getMethod() — Method in class Request

Returns the HTTP method with which the request was made (GET, POST, HEAD, PUT, ...).

Request::getHeader() — Method in class Request

Returns an HTTP header or null if it does not exist. The parameter is case-insensitive.

Request::getHeaders() — Method in class Request

Returns all HTTP headers as associative array.

Request::getReferer() — Method in class Request

What URL did the user come from? Beware, it is not reliable at all.

Request::getOrigin() — Method in class Request

What origin did the user come from? It contains scheme, hostname and port.

Request::getRemoteAddress() — Method in class Request

Returns the IP address of the remote client.

Request::getRemoteHost() — Method in class Request

Returns the host of the remote client.

Request::getRawBody() — Method in class Request

Returns raw content of HTTP request body.

Response::getCode() — Method in class Response

Returns HTTP response code.

Response::getHeader() — Method in class Response

Returns the sent HTTP header, or null if it does not exist. The parameter is case-insensitive.

Response::getHeaders() — Method in class Response

Returns all sent HTTP headers as associative array.

Session::getId() — Method in class Session

Returns the current session ID. Don't make dependencies, can be changed for each request.

Session::getName() — Method in class Session

Gets the session name.

Session::getSection() — Method in class Session

Returns specified session section.

Session::getIterator() — Method in class Session

Iteration over all sections.

Session::getOptions() — Method in class Session

Returns all session options.

Session::getCookieParameters() — Method in class Session
SessionSection::getIterator() — Method in class SessionSection

Returns an iterator over all section variables.

SessionSection::get() — Method in class SessionSection

Gets a variable from this session section.

Url::getScheme() — Method in class Url
Url::getUser() — Method in class Url
Url::getPassword() — Method in class Url
Url::getHost() — Method in class Url
Url::getDomain() — Method in class Url

Returns the part of domain.

Url::getPort() — Method in class Url
Url::getPath() — Method in class Url
Url::getQuery() — Method in class Url
Url::getQueryParameters() — Method in class Url
Url::getQueryParameter() — Method in class Url
Url::getFragment() — Method in class Url
Url::getAbsoluteUrl() — Method in class Url
Url::getAuthority() — Method in class Url

Returns the [user[:pass]@]host[:port] part of URI.

Url::getHostUrl() — Method in class Url

Returns the scheme and authority part of URI.

Url::getBasePath() — Method in class Url
Url::getBaseUrl() — Method in class Url
Url::getRelativeUrl() — Method in class Url
UrlImmutable::getScheme() — Method in class UrlImmutable
UrlImmutable::getUser() — Method in class UrlImmutable
UrlImmutable::getPassword() — Method in class UrlImmutable
UrlImmutable::getHost() — Method in class UrlImmutable
UrlImmutable::getDomain() — Method in class UrlImmutable
UrlImmutable::getPort() — Method in class UrlImmutable
UrlImmutable::getPath() — Method in class UrlImmutable
UrlImmutable::getQuery() — Method in class UrlImmutable
UrlImmutable::getQueryParameters() — Method in class UrlImmutable
UrlImmutable::getQueryParameter() — Method in class UrlImmutable
UrlImmutable::getFragment() — Method in class UrlImmutable
UrlImmutable::getAbsoluteUrl() — Method in class UrlImmutable

Returns the entire URI including query string and fragment.

UrlImmutable::getAuthority() — Method in class UrlImmutable

Returns the [user[:pass]@]host[:port] part of URI.

UrlImmutable::getHostUrl() — Method in class UrlImmutable

Returns the scheme and authority part of URI.

UrlScript::getScriptPath() — Method in class UrlScript
UrlScript::getBasePath() — Method in class UrlScript
UrlScript::getRelativePath() — Method in class UrlScript
UrlScript::getBaseUrl() — Method in class UrlScript
UrlScript::getRelativeUrl() — Method in class UrlScript
UrlScript::getPathInfo() — Method in class UrlScript

Returns the additional path information.

UserStorage::getIdentity() — Method in class UserStorage

Returns current user identity, if any.

UserStorage::getNamespace() — Method in class UserStorage

Returns current namespace.

UserStorage::getLogoutReason() — Method in class UserStorage

Why was user logged out?

UserStorage::getSessionSection() — Method in class UserStorage

Returns and initializes $this->sessionSection.

H

HttpExtensionClass in namespace Nette\Bridges\HttpDI

HTTP extension for Nette DI.

FileUpload::hasFile() — Method in class FileUpload

Returns true if the user has uploaded a file.

HelpersClass in namespace Nette\Http

Rendering helpers for HTTP.

$ Request#headersProperty in class Request
$ Response#headersProperty in class Response
Session::hasSection() — Method in class Session

Checks if a session section exist and is not empty.

$ Url#hostProperty in class Url
$ Url#hostUrlProperty in class Url
$ UrlImmutable#hostProperty in class UrlImmutable
$ UrlImmutable#hostUrlProperty in class UrlImmutable

I

Context::isModified() — Method in class Context

Attempts to cache the sent entity by its last modification date.

FileUpload::isOk() — Method in class FileUpload

Returns true if the file was uploaded successfully.

FileUpload::isImage() — Method in class FileUpload

Returns true if the uploaded file is a JPEG, PNG, GIF, or WebP image.

Helpers::ipMatch() — Method in class Helpers

Is IP address in CIDR block?

Helpers::initCookie() — Method in class Helpers
IRequestClass in namespace Nette\Http

HTTP request provides access scheme for request sent via HTTP.

IRequest::isMethod() — Method in class IRequest

Checks HTTP request method.

IRequest::isSecured() — Method in class IRequest

Is the request sent via secure channel (https)?

IRequest::isAjax() — Method in class IRequest

Is AJAX request?

IRequest::isSameSite() — Method in class IRequest

Is the request sent from the same origin?

IResponseClass in namespace Nette\Http

HTTP response interface.

IResponse::isSent() — Method in class IResponse

Checks if headers have been sent.

Request::isMethod() — Method in class Request

Checks the HTTP method with which the request was made. The parameter is case-insensitive.

Request::isSecured() — Method in class Request

Is the request sent via secure channel (https)?

Request::isSameSite() — Method in class Request

Is the request coming from the same site and is initiated by clicking on a link?

Request::isAjax() — Method in class Request

Is it an AJAX request?

Response::isSent() — Method in class Response

Returns whether headers have already been sent from the server to the browser, so it is no longer possible to send headers or change the response code.

Session::isStarted() — Method in class Session

Has been session started?

Url::isEqual() — Method in class Url

URL comparison.

UrlImmutable::isEqual() — Method in class UrlImmutable
UserStorage::isAuthenticated() — Method in class UserStorage

Is this user authenticated?

J

Url::jsonSerialize() — Method in class Url
UrlImmutable::jsonSerialize() — Method in class UrlImmutable

L

HttpExtension::loadConfiguration() — Method in class HttpExtension
SessionExtension::loadConfiguration() — Method in class SessionExtension

M

FileUpload::move() — Method in class FileUpload

Moves an uploaded file to a new location. If the destination file already exists, it will be overwritten.

$ Request#methodProperty in class Request

N

$ FileUpload#nameProperty in class FileUpload

O

$ FileUpload#okProperty in class FileUpload
$ Session#onStartProperty in class Session
$ Session#onBeforeWriteProperty in class Session
SessionSection::offsetSet() — Method in class SessionSection

Sets a variable in this session section.

SessionSection::offsetGet() — Method in class SessionSection
SessionSection::offsetExists() — Method in class SessionSection

Determines whether a variable in this session section is set.

SessionSection::offsetUnset() — Method in class SessionSection

Unsets a variable in this session section.

P

$ Request#postProperty in class Request
$ Url#passwordProperty in class Url
$ Url#portProperty in class Url
$ Url#pathProperty in class Url
Url::parseQuery() — Method in class Url

Parses query string. Is affected by directive arg_separator.input.

$ UrlImmutable#passwordProperty in class UrlImmutable
$ UrlImmutable#portProperty in class UrlImmutable
$ UrlImmutable#pathProperty in class UrlImmutable
$ UrlScript#pathInfoProperty in class UrlScript

Q

$ Request#queryProperty in class Request
$ Url#queryProperty in class Url
$ Url#queryParametersProperty in class Url
$ UrlImmutable#queryProperty in class UrlImmutable
$ UrlImmutable#queryParametersProperty in class UrlImmutable

R

IResponse::redirect() — Method in class IResponse

Redirects to a new URL.

RequestClass in namespace Nette\Http

HttpRequest provides access scheme for request sent via HTTP.

$ Request#refererProperty in class Request
$ Request#remoteAddressProperty in class Request
$ Request#remoteHostProperty in class Request
$ Request#rawBodyProperty in class Request
RequestFactoryClass in namespace Nette\Http

HTTP request factory.

ResponseClass in namespace Nette\Http

HttpResponse class.

Response::redirect() — Method in class Response

Redirects to another URL. Don't forget to quit the script then.

Session::regenerateId() — Method in class Session

Regenerates the session ID.

SessionSection::remove() — Method in class SessionSection

Removes a variable or whole section.

SessionSection::removeExpiration() — Method in class SessionSection

Removes the expiration from the section or specific variables.

$ Url#relativeUrlProperty in class Url
$ UrlScript#relativePathProperty in class UrlScript
$ UrlScript#relativeUrlProperty in class UrlScript

S

SessionExtensionClass in namespace Nette\Bridges\HttpDI

Session extension for Nette DI.

SessionPanelClass in namespace Nette\Bridges\HttpTracy

Session panel for Debugger Bar.

$ FileUpload#sanitizedNameProperty in class FileUpload
$ FileUpload#sizeProperty in class FileUpload
IResponse::setCode() — Method in class IResponse

Sets HTTP response code.

IResponse::setHeader() — Method in class IResponse

Sends a HTTP header and replaces a previous one.

IResponse::setContentType() — Method in class IResponse

Sends a Content-type HTTP header.

IResponse::setExpiration() — Method in class IResponse

Sets the time (like '20 minutes') before a page cached on a browser expires, null means "must-revalidate".

IResponse::setCookie() — Method in class IResponse

Sends a cookie.

$ Request#securedProperty in class Request
RequestFactory::setBinary() — Method in class RequestFactory
RequestFactory::setProxy() — Method in class RequestFactory
Response::setCode() — Method in class Response

Sets HTTP response code.

Response::setHeader() — Method in class Response

Sends an HTTP header and overwrites previously sent header of the same name.

Response::setContentType() — Method in class Response

Sends a Content-type HTTP header.

Response::sendAsFile() — Method in class Response

Response should be downloaded with 'Save as' dialog.

Response::setExpiration() — Method in class Response

Sets the expiration of the HTTP document using the Cache-Control and Expires headers.

Response::setCookie() — Method in class Response

Sends a cookie.

SessionClass in namespace Nette\Http

Provides access to session sections as well as session settings and management methods.

Session::start() — Method in class Session

Starts and initializes session data.

Session::setName() — Method in class Session

Sets the session name to a specified one.

Session::setOptions() — Method in class Session

Sets session options.

Session::setExpiration() — Method in class Session

Sets the amount of time (like '20 minutes') allowed between requests before the session will be terminated, null means "for a maximum of 3 hours or until the browser is closed".

Session::setCookieParameters() — Method in class Session

Sets the session cookie parameters.

Session::setSavePath() — Method in class Session

Sets path of the directory used to save session data.

Session::setHandler() — Method in class Session

Sets user session handler.

SessionSectionClass in namespace Nette\Http

Session section.

SessionSection::set() — Method in class SessionSection

Sets a variable in this session section.

SessionSection::setExpiration() — Method in class SessionSection

Sets the expiration of the section or specific variables.

$ Url#schemeProperty in class Url
Url::setScheme() — Method in class Url
Url::setUser() — Method in class Url
Url::setPassword() — Method in class Url
Url::setHost() — Method in class Url
Url::setPort() — Method in class Url
Url::setPath() — Method in class Url
Url::setQuery() — Method in class Url
Url::setQueryParameter() — Method in class Url
Url::setFragment() — Method in class Url
$ UrlImmutable#schemeProperty in class UrlImmutable
$ UrlScript#scriptPathProperty in class UrlScript
UserStorage::setAuthenticated() — Method in class UserStorage

Sets the authenticated status of this user.

UserStorage::setIdentity() — Method in class UserStorage

Sets the user identity.

UserStorage::setNamespace() — Method in class UserStorage

Changes namespace; allows more users to share a session.

UserStorage::setExpiration() — Method in class UserStorage

Enables log out after inactivity. Accepts flag IUserStorage::CLEAR_IDENTITY.

T

$ FileUpload#temporaryFileProperty in class FileUpload
FileUpload::toImage() — Method in class FileUpload

Loads an image.

U

$ Request#urlProperty in class Request
$ RequestFactory#urlFiltersProperty in class RequestFactory
UrlClass in namespace Nette\Http

Mutable representation of a URL.

$ Url#userProperty in class Url
Url::unescape() — Method in class Url

Similar to rawurldecode, but preserves reserved chars encoded.

UrlImmutableClass in namespace Nette\Http

Immutable representation of a URL.

$ UrlImmutable#userProperty in class UrlImmutable
UrlScriptClass in namespace Nette\Http

Immutable representation of a URL with application base-path.

UserStorageClass in namespace Nette\Http

W

Request::withUrl() — Method in class Request

Returns a clone with a different URL.

$ Response#warnOnBufferProperty in class Response
$ SessionSection#warnOnUndefinedProperty in class SessionSection
UrlImmutable::withScheme() — Method in class UrlImmutable
UrlImmutable::withUser() — Method in class UrlImmutable
UrlImmutable::withPassword() — Method in class UrlImmutable
UrlImmutable::withoutUserInfo() — Method in class UrlImmutable
UrlImmutable::withHost() — Method in class UrlImmutable
UrlImmutable::withPort() — Method in class UrlImmutable
UrlImmutable::withPath() — Method in class UrlImmutable
UrlImmutable::withQuery() — Method in class UrlImmutable
UrlImmutable::withQueryParameter() — Method in class UrlImmutable
UrlImmutable::withFragment() — Method in class UrlImmutable
UrlScript::withPath() — Method in class UrlScript

_

HttpExtension::__construct() — Method in class HttpExtension
SessionExtension::__construct() — Method in class SessionExtension
Context::__construct() — Method in class Context
FileUpload::__construct() — Method in class FileUpload
FileUpload::__toString() — Method in class FileUpload

Returns the path of the temporary location of the uploaded file.

Request::__construct() — Method in class Request
Response::__construct() — Method in class Response
Response::__destruct() — Method in class Response
Session::__construct() — Method in class Session
Session::__destruct() — Method in class Session
SessionSection::__construct() — Method in class SessionSection

Do not call directly. Use Session::getSection().

SessionSection::__set() — Method in class SessionSection

Sets a variable in this session section.

SessionSection::__get() — Method in class SessionSection

Gets a variable from this session section.

SessionSection::__isset() — Method in class SessionSection

Determines whether a variable in this session section is set.

SessionSection::__unset() — Method in class SessionSection

Unsets a variable in this session section.

Url::__construct() — Method in class Url
Url::__toString() — Method in class Url
UrlImmutable::__construct() — Method in class UrlImmutable
UrlImmutable::__toString() — Method in class UrlImmutable
UrlScript::__construct() — Method in class UrlScript
UserStorage::__construct() — Method in class UserStorage