You are here

private function MultipartStream::getHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/MultipartStream.php \GuzzleHttp\Psr7\MultipartStream::getHeader()
1 call to MultipartStream::getHeader()
MultipartStream::createElement in vendor/guzzlehttp/psr7/src/MultipartStream.php

File

vendor/guzzlehttp/psr7/src/MultipartStream.php, line 142

Class

MultipartStream
Stream that when read returns bytes for a streaming multipart or multipart/form-data stream.

Namespace

GuzzleHttp\Psr7

Code

private function getHeader(array $headers, $key) {
  $lowercaseHeader = strtolower($key);
  foreach ($headers as $k => $v) {
    if (strtolower($k) === $lowercaseHeader) {
      return $v;
    }
  }
  return null;
}