Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valohai/asgiproxy
Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol
https://github.com/valohai/asgiproxy
asgi http proxy python websocket
Last synced: 1 day ago
JSON representation
Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol
- Host: GitHub
- URL: https://github.com/valohai/asgiproxy
- Owner: valohai
- License: mit
- Created: 2019-12-13T10:04:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T16:03:35.000Z (8 months ago)
- Last Synced: 2024-10-11T09:43:59.794Z (28 days ago)
- Topics: asgi, http, proxy, python, websocket
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 31
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-asgi - asgiproxy
README
asgiproxy
=========Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol.
## Usage
### Command line usage
`asgiproxy` includes a small command-line tool that transparently (aside from rewriting the "Host" header)
proxies all HTTP and WebSocket requests to another endpoint.It may be useful on its own, and also serves as a reference on how to use the library.
While the library itself does not require Uvicorn, the CLI tool does.
```bash
$ python -m asgiproxy http://example.com/
```starts a HTTP server on http://0.0.0.0:40404/ which should show you the example.com content.
### API usage
Documentation forthcoming. For the time being, see `asgiproxy/__main__.py`.
### Running tests
Tests are run with Py.test.
```bash
py.test
```