#NEWLINE# def setRawHeaders( self , name , values ) : #NEWLINE# #INDENT# '\n        Sets the raw representation of the given header.\n\n        @type name: L{bytes} or L{unicode}\n        @param name: The name of the HTTP header to set the values for.\n\n        @type values: L{list} of L{bytes} or L{unicode} strings\n        @param values: A list of strings each one being a header value of\n            the given name.\n\n        @return: C{None}\n        ' #NEWLINE# if ( not isinstance ( values , list ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'Header entry %r should be list but found instance of %r instead' % ( name , type ( values ) ) ) ) #NEWLINE# #UNINDENT# name = self . _encodeName ( name ) #NEWLINE# self . _rawHeaders [ name ] = self . _encodeValues ( values )