Awesome
ProxyX
Proof of concept for a lightweight HTTP/1.1 proxy service built with ASGI and HTTPX. No maintenance intended.
Setup
Clone this repository, then install dependencies:
scripts/install
Example
scripts/example
This 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
Known limitations
- 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}
).
License
MIT