Implement handle_request in worker.ml