def get(self, site, col): CollectionHandler.HANDLED += 1 if self.get_status() == 304: return workers.add(lambda: self._get(site, col))
def put(self, site, col, oid): ItemHandler.HANDLED += 1 workers.add(lambda: self._put(site, col, oid))
def get(self): StatsHandler.HANDLED += 1 if self.get_status() == 304: return workers.add(lambda: self._get())
def delete(self, site, col, oid): ItemHandler.HANDLED += 1 workers.add(lambda: self._delete(site, col, oid))
def get(self, site, col, oid): ItemHandler.HANDLED += 1 if self.get_status() == 304: return workers.add(lambda: self._get(site, col, oid))
def head(self, site, col, oid): ItemHandler.HANDLED += 1 if self.get_status() == 304: return workers.add(lambda: self._get(site, col, oid, {"fields": {}}))
def delete(self, site, col): CollectionHandler.HANDLED += 1 workers.add(lambda: self._delete(site, col))
def post(self, site, col): CollectionHandler.HANDLED += 1 if self.request.body is None: raise web.HTTPError(400, "Missing new data as JSON dict") workers.add(lambda: self._post(site, col))