Re: [Twisted-Python] Streaming Requests

2017-01-09 Thread Cory Benfield
> On 8 Jan 2017, at 06:44, Mark Williams wrote: > > * Comments? > Will this approach break a public API? Does it sound terrible? Or > good? Please share your thoughts! > > Let's hope 2017 is the year of the streaming request! > > -Mark I’m very excited to see someone tackling this again:

[Twisted-Python] Testing Strategies (was Re: Streaming Requests)

2017-01-09 Thread Glyph Lefkowitz
On Jan 8, 2017, at 4:34 PM, Jean-Paul Calderone wrote: > > Here's one example I know of off the top of my head, > > >. >

Re: [Twisted-Python] Testing Strategies (was Re: Streaming Requests)

2017-01-09 Thread Jean-Paul Calderone
On Mon, Jan 9, 2017 at 4:52 AM, Glyph Lefkowitz wrote: > On Jan 8, 2017, at 4:34 PM, Jean-Paul Calderone > wrote: > > > Here's one example I know of off the top of my head, < > https://github.com/ScatterHQ/flocker/blob/master/flocker/ > restapi/testtools.py#L316>. This one isn't a from-scratch

[Twisted-Python] Announcing txAWS 0.2.3.1

2017-01-09 Thread Jean-Paul Calderone
I've just release txAWS 0.2.3.1. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. AWSServiceEndpoint's ssl_hostname_verification's parameter now defaults to True instead of False. This affects all txAWS APIs which issue requests to AWS endpoints. For any applicat

[Twisted-Python] understanding twisted, better error handling

2017-01-09 Thread steven meiers
hi, i use twisted to send a web request over a proxy, this works over treq.get(url, agent=myagent) without problems. but in the process (started out with agent.request) i could not figure out from what line of twisted code this error: [Failure instance: Traceback (failure with no frames): : []

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-09 Thread Glyph Lefkowitz
> On Jan 9, 2017, at 5:20 PM, steven meiers wrote: > > the error does come up when you give agent.request a "GET" instead of a > b"GET". That's expected; you do have to pass the method as `bytes`, as documented here: https://twistedmatrix.com/documents/16.6.0/api/twisted.web.iweb.IAgent.html#