def rest_server_act_hdl(): data = json.load(bottle.request.body) return rest_server.server_action(data)
def helper_rest_server_act_hdl(self, request): data = self.get_data_from_generator(request.json()) return web.json_response(rest_server.server_action(data), dumps=dumps_bytestr)
async def rest_server_act_hdl(self, request): data = await request.json() return web.json_response(rest_server.server_action(data))