Request::getScheme()

string getScheme() Gets the request's scheme. Return Value string

Request::getSession()

SessionInterface|null getSession() Gets the Session. Return Value SessionInterface|null The session

Request::getScriptName()

string getScriptName() Returns current script name. Return Value string

Request::getRequestFormat()

string getRequestFormat(string $default = 'html') Gets the request format. Here is the process to determine the format: format defined by the user (with setRequestFormat()) _format request attribute $default Parameters string $default The default format Return Value string The request format

Request::getRequestUri()

string getRequestUri() Returns the requested URI (path and query string). Return Value string The raw URI (i.e. not URI decoded)

Request::getQueryString()

string|null getQueryString() Generates the normalized query string for the Request. It builds a normalized query string, where keys/value pairs are alphabetized and have consistent escaping. Return Value string|null A normalized query string for the Request

Request::getRealMethod()

string getRealMethod() Gets the "real" request method. Return Value string The request method See also getMethod()

Request::getRelativeUriForPath()

string getRelativeUriForPath(string $path) Returns the path as relative reference from the current Request path. Only the URIs path component (no schema, host etc.) is relevant and must be given. Both paths must be absolute and not contain relative parts. Relative URLs from one resource to another are useful when generating self-contained downloadable document archives. Furthermore, they can be used to reduce the link size in documents. Example target paths, given a base path of

Request::getPathInfo()

string getPathInfo() Returns the path being requested relative to the executed script. The path info always starts with a /. Suppose this request is instantiated from /mysite on localhost: http://localhost/mysite returns an empty string http://localhost/mysite/about returns '/about' http://localhost/mysite/enco%20ded returns '/enco%20ded' http://localhost/mysite/about?var=1 returns '/about' Return Value string The raw path (i.e. not urldecoded)

Request::getPassword()

string|null getPassword() Returns the password. Return Value string|null