Request::getHttpHost()

string getHttpHost() Returns the HTTP host being requested. The port name will be appended to the host if it's non-standard. Return Value string

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

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

Request::getFiles()

array getFiles() Gets the request server files. Return Value array The request files

Request::getETags()

array getETags() Gets the Etags. Return Value array The entity tags

Request::getEncodings()

array getEncodings() Gets a list of encodings acceptable by the client browser. Return Value array List of encodings in preferable order

Request::getDefaultLocale()

string getDefaultLocale() Get the default locale. Return Value string

Request::getCookies()

array getCookies() Gets the request cookies. Return Value array The request cookies

Request::getContentType()

string|null getContentType() Gets the format associated with the request. Return Value string|null The format (null if no content type is present)

Request::getContent()

string|resource getContent(bool $asResource = false) Returns the request body content. Parameters bool $asResource If true, a resource will be returned Return Value string|resource The request body content or a resource to read the body stream Exceptions LogicException