Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify a custom HttpURLConnection. #17

Closed
wants to merge 1 commit into from

Conversation

orrc
Copy link

@orrc orrc commented Feb 27, 2013

As discussed in issue #11, this allows the use of libraries like OkHttp to work around various native Android HTTP bugs.

I don't know if these changes were exactly what you were thinking of, but this works well for me (with a patched version of OkHttp which properly handles HTTP 307 redirects).

I tested it with no ConnectionHandler, a handler which always returns null and a handler which uses OkHttp. Everything worked as expected.

As discussed in issue lexs#11, this allows the use of libraries
like OkHttp to work around various native Android HTTP bugs.
@orrc orrc mentioned this pull request Mar 14, 2013
@lexs
Copy link
Owner

lexs commented Mar 15, 2013

Sorry for not answering sooner. This is pretty close to what I had in mind. I want to still keep ConnectionHandler as is (for compatiability) and introduce a new class instead. I'll probably deprecate ConnectionHandler though. I'll code this up over the weekend hopefully :)

@lexs
Copy link
Owner

lexs commented Mar 17, 2013

Implemented in f605225. Same idea but I decided on using a separate interface.

@lexs lexs closed this Mar 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants