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

Sha Hua huasha1985 at gmail.com
Mon Jan 27 12:23:51 MST 2014


Thanks. Yes. I am just planning to replace the HTTPClient part in the Proxy
implementation with Agent. Not sure if any problems may arise. Thanks!

Why would they have both Agent (1.1) and HTTPClient (1.0) as built-in HTTP
Client modules? The latter should be removed.

Sha


On Mon, Jan 27, 2014 at 11:12 AM, Laurens Van Houtven <_ at lvh.io> wrote:

> 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
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-web/attachments/20140127/1773ae71/attachment.html>


More information about the Twisted-web mailing list