/**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\Client.ClientResponseInterface::getHeader()
  */
 public function getHeader($headername)
 {
     return $this->message->getHeader($headername);
 }
示例#2
0
 public function getHeader(string $name) : array
 {
     $n = \strtolower($name);
     if ($n === 'host' && empty($this->headers[$n]) && $this->uri !== NULL) {
         $host = $this->uri->getHost();
         if (!empty($host)) {
             return [$host . ($this->uri->getPort() ? ':' . $this->uri->getPort() : '')];
         }
     }
     return parent::getHeader($name);
 }