public function HeaderBag::remove in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::remove()
Removes a header.
Parameters
string $key The HTTP header name:
1 call to HeaderBag::remove()
- ResponseHeaderBag::remove in vendor/
symfony/ http-foundation/ ResponseHeaderBag.php - Removes a header.
1 method overrides HeaderBag::remove()
- ResponseHeaderBag::remove in vendor/
symfony/ http-foundation/ ResponseHeaderBag.php - Removes a header.
File
- vendor/
symfony/ http-foundation/ HeaderBag.php, line 185
Class
- HeaderBag
- HeaderBag is a container for HTTP headers.
Namespace
Symfony\Component\HttpFoundationCode
public function remove($key) {
$key = strtr(strtolower($key), '_', '-');
unset($this->headers[$key]);
if ('cache-control' === $key) {
$this->cacheControl = array();
}
}