Re: How to write an HTTP1.1 Proxy using Twisted?
Laurens Van Houtven <[email protected]> Mon, 27 Jan 2014 20:12:35 +0100
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <CAE_Hg6buKxzEVBDi-7zYN8i4w5QK9ZpnS2eR6Z2AqncKTiu_kA@mail.gmail.com> |
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 _______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web