implement http_handler to wrap callback. send response in Handler function, not in callback