Skip to content

florimondmanca/proxyx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyX

Build Status

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 to https://www.encode.io/{path}).

License

MIT

About

[No maintenance intended] Proof of concept lightweight HTTP/1.1 proxy service built with ASGI and HTTPX.

Resources

License

Stars

Watchers

Forks