Re: producer-consumer example with web requests
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <20110418152045.1992.232742073.divmod.xquotient.809@localhost.localdomain> |
On 02:45 pm, [email protected] wrote: >Hi, > >I wonder if someone could help me with making of a streaming proxy - I >understand how producers/consumers work with general twisted, but >unsure of the best strategy in case of twisted.web. > >So, the problem is as follows: frontend that accepts a request with >some headers I must process and a potentially large body. The latter >I'd like to be able to proxy in a streaming manner to another http >server. Any suggestions? You might find twisted/web/proxy.py to be a good example of how to do this. Jean-Paul