<div dir="ltr">Hi all,<div><br></div><div>I have recently started to learn and use Twisted. The first task is to write an HTTP proxy.</div><div>I found Twisted provides a built-in proxy module described here:</div><div><br>
</div><div><a href="http://twistedmatrix.com/documents/current/web/howto/using-twistedweb.html#auto9">http://twistedmatrix.com/documents/current/web/howto/using-twistedweb.html#auto9</a><br></div><div><br></div><div>It says the server part inherits http.HTTPChannel, while the client part inherits http.HTTPClient.</div>
<div><br></div><div>However, as I later find out, <b>http.HTTPClient is only a HTTP 1.0 client,</b> which is not enough for my task. I also found there is another class called <b>twisted.web.client.Agent </b>which seems to be more advanced than http.HTTPClient and supports HTTP 1.1.</div>
<div><br></div><div>Questions:</div><div>1. Can twisted.web.client.Agent be used in a Proxy implementation with http.HTTPChannel? Is there any examples?</div><div>2. Does http.HTTPChannel support HTTP 1.1?</div><div><br></div>
<div>Thanks!</div><div><br></div><div>Sha</div></div>