How do I get hostname by sanic?

309 Views Asked by At

I am using sanic to create a API server but I can't find how to get the hostname on the docs.

Is there a reference of getting the hostname in sanic?

1

There are 1 best solutions below

1
On BEST ANSWER

What you want is actually in the documentation:

https://sanic.readthedocs.io/en/latest/sanic/request_data.html