#NEWLINE# def send_response_only( self , code , message = None ) : #NEWLINE# #INDENT# 'Send the response header only.' #NEWLINE# if ( message is None ) : #NEWLINE# #INDENT# if ( code in self . responses ) : #NEWLINE# #INDENT# message = self . responses [ code ] [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# message = '' #NEWLINE# #UNINDENT# #UNINDENT# if ( self . request_version != 'HTTP/0.9' ) : #NEWLINE# #INDENT# if ( not hasattr ( code , '_headers_buffer' ) ) : #NEWLINE# #INDENT# self . _headers_buffer = [ ] #NEWLINE# #UNINDENT# self . _headers_buffer . append ( ( '%s %d %s\r\n' % ( self . protocol_version , code , message ) ) . encode ( 'latin-1' , 'strict' ) )