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