asgi-proxy-lib
asgi-proxy-lib copied to clipboard
An ASGI function for proxying to a backend over HTTP
I sometimes find myself wanting to deploy a proxy that enables CORS.
This code here: https://github.com/simonw/asgi-proxy-lib/blob/0730e872d5472db018f80a5c5b97aa80f03711ea/asgi_proxy/__init__.py#L75-L79 It should actually return a 500 error with a simple HTML page saying roughly what went wrong. There are actually a few relevant HTTP errors here:...
Right now this proxy isn't useful for anything other than forwarding traffic to somewhere else. Including patterns for transforming proxied content would be really useful. Some transformations that I would...
Nice project, thanks for sharing! Correct me if I'm wrong, but it doesn't seem to support WebSockets? If not, it could be interesting to use [httpx-ws](https://github.com/frankie567/httpx-ws).