request.client
should work, unless you’re running behind a proxy (e.g. nginx) in that case use uvicorn’s --proxy-headers
flag to accept these incoming headers and make sure the proxy forwards them.
request.client
should work, unless you’re running behind a proxy (e.g. nginx) in that case use uvicorn’s --proxy-headers
flag to accept these incoming headers and make sure the proxy forwards them.