public function HttpResponse::getHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php \Zend\Feed\PubSubHubbub\HttpResponse::getHeader()
Check if a specific Header is set and return its value
Parameters
string $name:
Return value
string|null
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ HttpResponse.php, line 112
Class
Namespace
Zend\Feed\PubSubHubbubCode
public function getHeader($name) {
$name = $this
->_normalizeHeader($name);
foreach ($this->headers as $header) {
if ($header['name'] == $name) {
return $header['value'];
}
}
}