Re: [Twisted-Python] Compress/deflate support for getPage...

2008-12-08 Thread glyph
getPage has a number of deficiencies. JP Calderone and Itamar Shtull- Trauring have been working on this ticket: which (among other things) adds support for response headers and the hooks with which one would implement deflate support. On 12:47 am

Re: [Twisted-Python] Compress/deflate support for getPage...

2008-12-08 Thread Aaron DeVore
For a recent project I directly used HTTPClientFactory, the factory that getPage is based on. That required a bit more effort than a simple getPage(...).addCallback(func) but it wasn't terrible. -Aaron On Mon, Dec 8, 2008 at 4:47 PM, Alec Flett <[EMAIL PROTECTED]> wrote: > Along similar lines, is

Re: [Twisted-Python] Compress/deflate support for getPage...

2008-12-08 Thread Alec Flett
Along similar lines, is there a better API than getPage() that allows you to get headers, content-type, etc? The below could be easiliy implemented as a callback if the callback knew what headers it got, so it knew whether or not to deflate the body. Alec On Dec 8, 2008, at 4:00 PM, Sam's

[Twisted-Python] Compress/deflate support for getPage...

2008-12-08 Thread Sam's Lists
Is there any support for compress/deflate for webpages using the web client via getPage? If not, does anyone have a wrapper function before I make my own? Thanks ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/c

[Twisted-Python] Deferred question

2008-12-08 Thread Gabriel Rossetti
Hello everyone, I have a question concerning defers, I have a service that needs to query IO until it answers. The IO can be disconnected, connected but off, connected and on; depending on the state I get different exceptions. I wrote something like : def __requestId(self, _): d = sel