protected function HttpResponse::_normalizeHeader in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php \Zend\Feed\PubSubHubbub\HttpResponse::_normalizeHeader()
Normalizes a header name to X-Capitalized-Names
Parameters
string $name:
Return value
string
2 calls to HttpResponse::_normalizeHeader()
- HttpResponse::getHeader in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ HttpResponse.php - Check if a specific Header is set and return its value
- HttpResponse::setHeader in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ HttpResponse.php - Set a header
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ HttpResponse.php, line 204
Class
Namespace
Zend\Feed\PubSubHubbubCode
protected function _normalizeHeader($name) {
$filtered = str_replace([
'-',
'_',
], ' ', (string) $name);
$filtered = ucwords(strtolower($filtered));
$filtered = str_replace(' ', '-', $filtered);
return $filtered;
}