src/Room11/HTTP/Response/Response.php
public function removeHeader($field)
    {
        $ucField = strtoupper($field);

        if ($ucField === 'SET-COOKIE') {
            $this->cookies = [];
        } elseif (isset($this->ucHeaders[$ucField])) {
            $field = $this->ucHeaders[$ucField];
            unset(
                $this->ucHeaders[$ucField],
                $this->headers[$field]
            );
        }

        return $this;
    }
public function removeHeader($field)
    {
        $ucField = strtoupper($field);

        if ($ucField === 'SET-COOKIE') {
            $this->cookies = [];
        } elseif (isset($this->ucHeaders[$ucField])) {
            $field = $this->ucHeaders[$ucField];
            unset(
                $this->ucHeaders[$ucField],
                $this->headers[$field]
            );
        }

        return $this;
    }
public function removeHeader ( $ field ) { $ ucField = strtoupper ( $ field ) ; if ( $ ucField === 'SET-COOKIE' ) { $ this -> cookies = [ ] ; } elseif ( isset ( $ this -> ucHeaders [ $ ucField ] ) ) { $ field = $ this -> ucHeaders [ $ ucField ] ; unset ( $ this -> ucHeaders [ $ ucField ] , $ this -> headers [ $ field ] ) ; } return $ this ; }
Removes assigned headers for the specified field

Header field names are NOT case-sensitive.

@param string $field
@return Response Returns the current object instance
Removes assigned headers for the specified field