#NEWLINE# @ gen . coroutine #NEWLINE# def _http_delete( self , uri ) : #NEWLINE# #INDENT# self . _test_closed ( ) #NEWLINE# req_args = copy . deepcopy ( self . request_args ) #NEWLINE# req_args . setdefault ( 'headers' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . update ( { #NEWLINE# #INDENT# 'Accept' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# req = httpclient . HTTPRequest ( ( self . couch_url + uri ) , method = 'DELETE' , ** req_args ) #NEWLINE# try : #NEWLINE# #INDENT# resp = ( yield self . _client . fetch ( req ) ) #NEWLINE# #UNINDENT# except httpclient . HTTPError as e : #NEWLINE# #INDENT# if ( not e . response ) : #NEWLINE# #INDENT# raise relax_exception ( e ) #NEWLINE# #UNINDENT# resp = e . response #NEWLINE# #UNINDENT# raise gen . Return ( self . _parse_response ( resp ) )