#NEWLINE# def connectionMade( self ) : #NEWLINE# #INDENT# self . headers = Headers ( ) #NEWLINE# self . sendCommand ( self . factory . method , self . factory . path ) #NEWLINE# for ( key , values ) in self . factory . headers . items ( ) : #NEWLINE# #INDENT# for value in values : #NEWLINE# #INDENT# self . sendHeader ( value , value ) #NEWLINE# #UNINDENT# #UNINDENT# self . endHeaders ( ) #NEWLINE# if ( self . factory . body is not None ) : #NEWLINE# #INDENT# self . transport . write ( self . factory . body )