[Twisted-web] How to write an HTTP1.1 Proxy using Twisted?

Laurens Van Houtven _ at lvh.io
Mon Jan 27 12:12:35 MST 2014


Hi Sha,


I'm not sure about HTTPChannel, but Agent definitely supports HTTP/1.1.
Supporting it shouldn't be too hard, but I don't know of any examples.
Essentially, you just replace the proxy's client bits (which makes
responses on behalf of the thing that's connecting to the proxy) with agent
calls. I recommend just reading the code; it's what I did when I wrote
lvh/minitrue.

hth
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-web/attachments/20140127/5750b4ed/attachment.html>


More information about the Twisted-web mailing list