parameters: (self, name, value)
docstring: Set the value of a header.
  
          Note: This is not a perfect inversion of __getitem__, because any
          changed headers get stuck at the end of the raw-headers list rather
          than where the altered header was.
docstring_summary: Set the value of a header.
docstring_tokens: Set the value of a header .
function: def __setitem__(self, name, value):
          """Set the value of a header.
  
          Note: This is not a perfect inversion of __getitem__, because any
          changed headers get stuck at the end of the raw-headers list rather
          than where the altered header was.
          """
          del self[name] # Won't fail if it doesn't exist
          self.dict[name.lower()] = value
          text = name + ": " + value
          for line in text.split("\n"):
              self.headers.append(line + "\n")
function_tokens: def __setitem__ ( self , name , value ) : del self [ name ] # Won't fail if it doesn't exist self . dict [ name . lower ( ) ] = value text = name + ": " + value for line in text . split ( "\n" ) : self . headers . append ( line + "\n" )