You are here

private function MultipartStream::getHeader in Lockr 7.3

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;
}