You are here

public function HttpResponse::getHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

HttpResponse

Namespace

Zend\Feed\PubSubHubbub

Code

public function getHeader($name) {
  $name = $this
    ->_normalizeHeader($name);
  foreach ($this->headers as $header) {
    if ($header['name'] == $name) {
      return $header['value'];
    }
  }
}