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::getPreferredLanguage()

string|null getPreferredLanguage(array $locales = null) Returns the preferred language. Parameters array $locales An array of ordered available locales Return Value string|null The preferred locale

Request::getMimeType()

string getMimeType(string $format) Gets the mime type associated with the format. Parameters string $format The format Return Value string The associated mime type (null if not found)

Request::getParameters()

array getParameters() Gets the request parameters. Return Value array The request parameters

Request::getMimeTypes()

static array getMimeTypes(string $format) Gets the mime types associated with the format. Parameters string $format The format Return Value array The associated mime types

Request::getMethod()

string getMethod() Gets the request "intended" method. If the X-HTTP-Method-Override header is set, and if the method is a POST, then it is used to determine the "real" intended HTTP method. The _method request parameter can also be used to determine the HTTP method, but only if enableHttpMethodParameterOverride() has been called. The method is always an uppercased string. Return Value string The request method See also getRealMethod()

Request::getMethod()

string getMethod() Gets the request HTTP method. Return Value string The request HTTP method

Request::getHost()

string getHost() Returns the host name. This method can read the client host name from the "X-Forwarded-Host" header when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-Host" header must contain the client host name. If your reverse proxy uses a different header name than "X-Forwarded-Host", configure it via "setTrustedHeaderName()" with the "client-host" key. Return Value string Exceptions UnexpectedValueException when the host name is invalid

Request::getHttpMethodParameterOverride()

static bool getHttpMethodParameterOverride() Checks whether support for the _method request parameter is enabled. Return Value bool True when the _method request parameter is enabled, false otherwise

Request::getLocale()

string getLocale() Get the locale. Return Value string