src/HttpHandler.php
public function popHeader(string $key = null)
	{
		$value = $this->getHeader($key);

		if ($value !== null) {
			unset($this->options['headers'][$key]);
		}

		return $value;
	}
public function popHeader(string $key = null)
	{
		$value = $this->getHeader($key);

		if ($value !== null) {
			unset($this->options['headers'][$key]);
		}

		return $value;
	}
public function popHeader ( string $ key = null ) { $ value = $ this -> getHeader ( $ key ) ; if ( $ value !== null ) { unset ( $ this -> options [ 'headers' ] [ $ key ] ) ; } return $ value ; }
Pops a header value from the headers array.

@param  string|null $key The header key.
@return string|null
Pops a header value from the headers array .