Ticket #1774: endpoints-doc.patch
| File endpoints-doc.patch, 1.3 KB (added by exarkun, 2 years ago) |
|---|
-
doc/web/howto/client.xhtml
289 289 <h3>Using a HTTP proxy</h3> 290 290 291 291 <p> 292 To be able to use HTTP proxies with an agent, you can use <code292 To be able to use HTTP proxies with an agent, you can use the <code 293 293 class="API">twisted.web.client.ProxyAgent</code> class. It supports the 294 294 same interface as <code>Agent</code>, but takes the endpoint of the proxy 295 as argument.295 as initializer argument. 296 296 </p> 297 297 298 298 <p> 299 Here's an example to use a HTTP proxy, thisproxy running on299 Here's an example demonstrating the use of an HTTP proxy running on 300 300 localhost:8000. 301 301 </p> 302 302 … … 320 320 321 321 if __name__ == "__main__": 322 322 main() 323 </pre>323 </pre> 324 324 325 325 <p> 326 326 Please refer to the <a 327 href="../../core/howto/endpoints.xhtml">Endpoints</a> documentation for 328 more information. 327 href="../../core/howto/endpoints.xhtml">endpoints documentation</a> for 328 more information about how they work and the <code 329 class="API">twisted.internet.endpoints</code> API documentation to learn 330 what other kinds of endpoints exist. 329 331 </p> 330 332 331 333 <h2>
