public function Request::getEncodings in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getEncodings()
Gets a list of encodings acceptable by the client browser.
Return value
array List of encodings in preferable order
File
- vendor/
symfony/ http-foundation/ Request.php, line 1629
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function getEncodings() {
if (null !== $this->encodings) {
return $this->encodings;
}
return $this->encodings = array_keys(AcceptHeader::fromString($this->headers
->get('Accept-Encoding'))
->all());
}