Beispiel #1
0
 def get(self, site, col):
     CollectionHandler.HANDLED += 1
     if self.get_status() == 304:
         return
     workers.add(lambda: self._get(site, col))
Beispiel #2
0
 def put(self, site, col, oid):
     ItemHandler.HANDLED += 1
     workers.add(lambda: self._put(site, col, oid))
Beispiel #3
0
 def get(self):
     StatsHandler.HANDLED += 1
     if self.get_status() == 304:
         return
     workers.add(lambda: self._get())
Beispiel #4
0
 def delete(self, site, col, oid):
     ItemHandler.HANDLED += 1
     workers.add(lambda: self._delete(site, col, oid))
Beispiel #5
0
 def get(self, site, col, oid):
     ItemHandler.HANDLED += 1
     if self.get_status() == 304:
         return
     workers.add(lambda: self._get(site, col, oid))
Beispiel #6
0
 def head(self, site, col, oid):
     ItemHandler.HANDLED += 1
     if self.get_status() == 304:
         return
     workers.add(lambda: self._get(site, col, oid, {"fields": {}}))
Beispiel #7
0
 def delete(self, site, col):
     CollectionHandler.HANDLED += 1
     workers.add(lambda: self._delete(site, col))
Beispiel #8
0
 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))