Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florimondmanca/proxyx
[No maintenance intended] Proof of concept lightweight HTTP/1.1 proxy service built with ASGI and HTTPX.
https://github.com/florimondmanca/proxyx
Last synced: 11 days ago
JSON representation
[No maintenance intended] Proof of concept lightweight HTTP/1.1 proxy service built with ASGI and HTTPX.
- Host: GitHub
- URL: https://github.com/florimondmanca/proxyx
- Owner: florimondmanca
- License: mit
- Created: 2020-07-16T17:46:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-26T21:00:25.000Z (about 3 years ago)
- Last Synced: 2024-10-18T22:13:54.859Z (21 days ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 30
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-asgi - proxyx - Proof of concept for a lightweight HTTP/1.1 proxy service built with ASGI and HTTPX. (Resources / Experiments and examples)
README
# ProxyX
[![Build Status](https://dev.azure.com/florimondmanca/public/_apis/build/status/florimondmanca.proxyx?branchName=master)](https://dev.azure.com/florimondmanca/public/_build/latest?definitionId=14&branchName=master)
Proof of concept for a lightweight HTTP/1.1 proxy service built with [ASGI](https://asgi.readthedocs.io) and [HTTPX](https://github.com/encode/httpx). No maintenance intended.
## Setup
Clone this repository, then install dependencies:
```bash
scripts/install
```## Example
```bash
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:
```bash
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