def create_conn(conn): logger.error('create_conn')
def repeat_timer(): logger.error('repeat_timer')
def create_worker(): logger.error('create_worker')
def before_app_response(conn, rsp): logger.error('bp.before_app_response rsp: %r', rsp)
def after_app_request(request, exc): logger.error('bp.after_app_request')
def close_app_conn(conn): logger.error('bp.close_app_conn')
def stop_app_worker(): logger.error('bp.stop_app_worker')
def create_app_worker(): logger.error('bp.create_app_worker')
def before_response(worker, rsp): logger.error('before_response: %r', rsp)
def after_response(worker, rsp, result): logger.error('after_response: %r, %s', rsp, result)
def create_worker(worker): logger.error('create_worker: %r', worker)
def start_worker(): logger.error('start_worker')
def before_app_response(worker, rsp): logger.error('bp.before_app_response rsp: %r', rsp)
def before_request(request): logger.error('before_request')
def create_app_conn(conn): logger.error('bp.create_app_conn')
def before_response(conn, rsp): logger.error('before_response: %r', rsp)
def before_app_request(request): logger.error('bp.before_app_request')
def before_request(request): logger.error('bp.before_request') request.interrupt(dict(ret=-100))
def repeat_app_timer(): logger.error('bp.repeat_app_timer')
def after_request(request, exc): logger.error('bp.after_request: %s', exc)
def after_response(conn, rsp, result): logger.error('after_response: %r, %s', rsp, result)
def index(request): logger.error('request: %s', request) request.write(dict(ret=100))
def after_app_response(conn, rsp, result): logger.error('bp.after_app_response rsp: %r, %s', rsp, result)
def stop_worker(): logger.error('stop_worker')
def close_conn(conn): logger.error('close_conn')
def login(request): logger.error('request: %s', request) request.write(dict(ret=101, body=repr(request.address)))
def after_request(request, exc): logger.error('after_request')
def create_app_worker(worker): logger.error('bp.create_app_worker: %r', worker)