A way to modify headers like host as in nginx #29
Replies: 1 comment 3 replies
-
Hi @ankit-sapkota555 .
Have you read https://wsh032.github.io/fastapi-proxy-lib/Usage/Advanced/#modify-request ? Does it meet your needs? newest link: https://www.python-httpx.org/advanced/authentication/#custom-authentication-schemes I'm not sure if I understand your meaning correctly. Do you mean that there is a server running on port 8005, and you want to forward all requests received on port 8005 to port 3000? And you want the requests received on port 3000 to have a request header with Actually, this library will automatically modify the corresponding Have you encountered any specific errors while using it? Let me know, and perhaps I can help resolve it. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to modify headers like host?
Let's say I have a Web server running at 3000 and I want to use this reverse proxy to pass requests received at localhost:8005. But I need the host header to be localhost:3000 as it is required by the web server. How can I achieve this.
There does not seem to be a function to modify any thing. Am I missing something here? Or is it not yet supported ?
Beta Was this translation helpful? Give feedback.
All reactions