#NEWLINE# def _encodeName( self , name ) : #NEWLINE# #INDENT# "\n        Encode the name of a header (eg 'Content-Type') to a ISO-8859-1 encoded\n        bytestring if required.\n\n        @param name: A HTTP header name\n        @type name: L{unicode} or L{bytes}\n\n        @return: C{name}, encoded if required, lowercased\n        @rtype: L{bytes}\n        " #NEWLINE# if isinstance ( name , unicode ) : #NEWLINE# #INDENT# return name . lower ( ) . encode ( 'iso-8859-1' ) #NEWLINE# #UNINDENT# return name . lower ( )