async def METHOD_NAME(scope, receive, send):
    await send({"type": "http.response.start", "status": 200, "headers": []})
    await send({"type": "http.response.body", "body": b"start", "more_body": True})
    await server_event.wait()
    await send({"type": "http.response.body", "body": b"end", "more_body": False})