lib/Elastica/Client.php
public function removeHeader($header)
    {
        if (\is_string($header)) {
            if (\array_key_exists($header, $this->_config['headers'])) {
                unset($this->_config['headers'][$header]);
            }
        } else {
            throw new InvalidException('Header must be a string');
        }

        return $this;
    }
public function removeHeader($header)
    {
        if (\is_string($header)) {
            if (\array_key_exists($header, $this->_config['headers'])) {
                unset($this->_config['headers'][$header]);
            }
        } else {
            throw new InvalidException('Header must be a string');
        }

        return $this;
    }
public function removeHeader ( $ header ) { if ( \ is_string ( $ header ) ) { if ( \ array_key_exists ( $ header , $ this -> _config [ 'headers' ] ) ) { unset ( $ this -> _config [ 'headers' ] [ $ header ] ) ; } } else { throw new InvalidException ( 'Header must be a string' ) ; } return $ this ; }
Remove a HTTP Header.

@param string $header The HTTP Header to remove

@throws \Elastica\Exception\InvalidException If $header is not a string

@return $this
Remove a HTTP Header .