lib/HttpClient/CurlClient.php
private function hasHeader($headers, $name)
    {
        foreach ($headers as $header) {
            if (strncasecmp($header, "{$name}: ", strlen($name) + 2) === 0) {
                return true;
            }
        }

        return false;
    }
private function hasHeader($headers, $name)
    {
        foreach ($headers as $header) {
            if (strncasecmp($header, "{$name}: ", strlen($name) + 2) === 0) {
                return true;
            }
        }

        return false;
    }
private function hasHeader ( $ headers , $ name ) { foreach ( $ headers as $ header ) { if ( strncasecmp ( $ header , "{$name}: " , strlen ( $ name ) + 2 ) === 0 ) { return true ; } } return false ; }
Checks if a list of headers contains a specific header name.

@param string[] $headers
@param string $name
@return boolean
Checks if a list of headers contains a specific header name .