(self, name)
Delete all occurrences of a header, if present.

        Does not raise an exception if the header is missing.
Delete all occurrences of a header, if present.
Delete all occurrences of a header if present .
def __delitem__(self, name):
        """Delete all occurrences of a header, if present.

        Does not raise an exception if the header is missing.
        """
        name = name.lower()
        newheaders = []
        for k, v in self._headers:
            if k.lower() != name:
                newheaders.append((k, v))
        self._headers = newheaders
def __delitem__ ( self , name ) : name = name . lower ( ) newheaders = [ ] for k , v in self . _headers : if k . lower ( ) != name : newheaders . append ( ( k , v ) ) self . _headers = newheaders