Proof of concept for a lightweight HTTP/1.1 proxy service built with ASGI and HTTPX. No maintenance intended.
Clone this repository, then install dependencies:
scripts/installscripts/exampleThis will proxy https://www.python-httpx.org/ (the HTTPX documentation) from localhost:8000.
Use environment variables as below to proxy a different target:
PROXYX_HOSTNAME="www.example.org" PROXYX_ROOT_PATH="" scripts/example- Domain-level redirects are not handled (e.g. proxying
https://encode.io/{path}won't work because this domain returns a 301 tohttps://www.encode.io/{path}).
MIT