ning / async-http-client

Asynchronous Http Client for Java
135 stars 50 forks source link

Patch to allow hooking up a signature calculator (like OAuth) #40

Closed cowtowncoder closed 14 years ago

cowtowncoder commented 14 years ago

Ok here is a minimal set of changes to allow registering a signature calculator. I have an OAuth signature calculator implementation that I hope to submit soon as well (but needs bit more cleaning up, making it zero-dependency etc). I had to change some visibility; and I am open to suggestions for alternate way of doing things. Basic requirement is just having access to base URI, and signature calculation getting called right after request has been built but before it has been sent; this to add signature as a header or parameter.

jfarcand commented 14 years ago

Salut...OK looking at it. Stay tuned!

cowtowncoder commented 14 years ago

Thanks! I got OAuth signature calculator itself mostly working; just one odd issue with encoding of '+'. But that is not related to async http client (possibly bug on server side instead)

jfarcand commented 14 years ago

OK patch applied. Thanks!!