Keep a track of client's IP address

Now that the portal was up and ready, Batman realised that the Joker was using the Gotham Police Dashboard too. So, he wanted to keep a track of the IP address of the client who was accessing his application. He used the following code to do so:

Batman scaled his application across multiple cores for better performance. He used the following command:

Request

GET
/hello_world
from robyn import Robyn

app = Robyn(__file__)

@app.get("/")
async def h(request):
    return f"hello to you, {request.ip_addr}"