#NEWLINE# def extract( self , reqbuilder ) : #NEWLINE# #INDENT# if self . isComplete ( ) : #NEWLINE# #INDENT# endreq = ( b'\r\n\r\n' if ( b'\r\n\r\n' in self . incbuf ) else b'\n\n' ) #NEWLINE# endloc = self . incbuf . index ( endreq ) #NEWLINE# excess = self . incbuf [ ( endloc + len ( endreq ) ) : ] #NEWLINE# return ( reqbuilder ( self . incbuf [ : endloc ] ) , HTTPRequestBuf ( excess ) ) #NEWLINE# #UNINDENT# return None