You are here

public function MessageTrait::getHeader in Lockr 7.3

1 call to MessageTrait::getHeader()
MessageTrait::getHeaderLine in vendor/guzzlehttp/psr7/src/MessageTrait.php

File

vendor/guzzlehttp/psr7/src/MessageTrait.php, line 49

Class

MessageTrait
Trait implementing functionality common to requests and responses.

Namespace

GuzzleHttp\Psr7

Code

public function getHeader($header) {
  $header = strtolower($header);
  if (!isset($this->headerNames[$header])) {
    return [];
  }
  $header = $this->headerNames[$header];
  return $this->headers[$header];
}