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

use NetworkUtils.getHttpURLConnection for all URLConnections #1081

Merged
merged 1 commit into from Feb 20, 2015

Conversation

eighthave
Copy link
Contributor

This keeps the code consistent, provides a single common method for setting
up URLConnections, and allows the proxy support to work on all network
connections.

NetworkUtils.getHttpURLConnection() provides a common method for creating
HttpUrlConnection instances from URLs. That's where the proxy config
happens. If you can think of a better way to add proxy support, I'm all
ears. This is the best that we've found in our proxy work at Guardian
Project.

this is a follow up on #1043

This keeps the code consistent, provides a single common method for setting
up URLConnections, and allows the proxy support to work on all network
connections.

NetworkUtils.getHttpURLConnection() provides a common method for creating
HttpUrlConnection instances from URLs.  That's where the proxy config
happens.  If you can think of a better way to add proxy support, I'm all
ears.  This is the best that we've found in our proxy work at Guardian
Project.

this is a follow up on osmandapp#1043
vshcherb added a commit that referenced this pull request Feb 20, 2015
use NetworkUtils.getHttpURLConnection for all URLConnections
@vshcherb vshcherb merged commit c523240 into osmandapp:master Feb 20, 2015
@eighthave eighthave deleted the standardize-url-connections branch February 20, 2015 20:54
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