parameters: (self)
docstring: delete method for kv handler, set value according to key.
docstring_summary: delete method for kv handler, set value according to key.
docstring_tokens: delete method for kv handler set value according to key .
function: def do_DELETE(self):
          """
          delete method for kv handler, set value according to key.
          """
          log_str = "DELETE " + self.address_string() + self.path
          paths = self.path.split('/')
          if len(paths) < 3:
              print('len of request path must be 3: ' + self.path)
              self.send_status_code(400)
              return
          _, scope, key = paths
          with self.server.delete_kv_lock:
              if self.server.delete_kv.get(scope) is None:
                  self.server.delete_kv[scope] = set()
              self.server.delete_kv[scope].add(key)
          self.send_status_code(200)
          _http_server_logger.info(log_str)
function_tokens: def do_DELETE ( self ) : log_str = "DELETE " + self . address_string ( ) + self . path paths = self . path . split ( '/' ) if len ( paths ) < 3 : print ( 'len of request path must be 3: ' + self . path ) self . send_status_code ( 400 ) return _ , scope , key = paths with self . server . delete_kv_lock : if self . server . delete_kv . get ( scope ) is None : self . server . delete_kv [ scope ] = set ( ) self . server . delete_kv [ scope ] . add ( key ) self . send_status_code ( 200 ) _http_server_logger . info ( log_str )