public function removeAll($name)
    {
        $s = $this->getNormalizedHeaderName($name);
        if (!empty($this->headerMap[$s])) {
            foreach ($this->headerMap[$s] as $i) {
                unset($this->headers[$i]);
                unset($this->headerObjects[$i]);
            }
            $this->headerMap[$s] = [];
            return true;
        }
        return false;
    }
public function removeAll($name)
    {
        $s = $this->getNormalizedHeaderName($name);
        if (!empty($this->headerMap[$s])) {
            foreach ($this->headerMap[$s] as $i) {
                unset($this->headers[$i]);
                unset($this->headerObjects[$i]);
            }
            $this->headerMap[$s] = [];
            return true;
        }
        return false;
    }
public function removeAll ( $ name ) { $ s = $ this -> getNormalizedHeaderName ( $ name ) ; if ( ! empty ( $ this -> headerMap [ $ s ] ) ) { foreach ( $ this -> headerMap [ $ s ] as $ i ) { unset ( $ this -> headers [ $ i ] ) ; unset ( $ this -> headerObjects [ $ i ] ) ; } $ this -> headerMap [ $ s ] = [ ] ; return true ; } return false ; }
Removes all headers that match the passed name.

@param string $name
@return boolean
Removes all headers that match the passed name .