Pure python reverse proxy that handles chunking

316 views Asked by At

Reverse proxy capable pure python webserver?

References twisted, and there is a great example for how to set up a reverse proxy, that appears to work. I could not find how to make the example collect all the chunks and send off an unchunked request to the upstream server, like happens with the default nginx reverse proxy config. Is that possible with twisted? Some other pure python project?

from twisted.internet import reactor
from twisted.web import proxy, server

site = server.Site(proxy.ReverseProxyResource('localhost', 8002, b''))
reactor.listenTCP(8081, site)
reactor.run()
0

There are 0 answers