def after_app_response(worker, rsp, result): logger.error('bp.after_app_response rsp: %r, %s', rsp, result)
def login(request): logger.error('request: %s, client_ip: %s, worker: %s', request, request.client_ip, request.worker) return dict(ret=101, body=repr(request))
def before_app_response(worker, rsp): logger.error('bp.before_app_response rsp: %r', rsp)
def after_request(request, exc): logger.error('bp.after_request')
def before_request(request): logger.error('bp.before_request') request.interrupt(dict(ret=-100))
def before_app_request(request): logger.error('bp.before_app_request')
def create_app_worker(worker): logger.error('bp.create_app_worker: %r', worker)