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 configuring Call.Factory instead of OkHttpClient (#3137) #2987

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

yschimke
Copy link
Contributor

@yschimke yschimke commented Nov 2, 2024

This change allows users to configure a Call.Factory instead of just an OkHttpClient for making HTTP requests. It changes the setOkHttpClient method in a source compatible, but binary incompatible way.

This change provides more flexibility and allows users to use different HTTP clients, like those using Cronet.

Closes #2986

This change allows users to configure a `Call.Factory` instead of just an `OkHttpClient` for making HTTP requests. It introduces a new `setOkHttpCallFactory` method in `HttpRequestUtil` and deprecates the `setOkHttpClient` method.

This change provides more flexibility and allows users to use different HTTP clients, like those using Cronet.
@louwers louwers merged commit 286f9d0 into maplibre:main Nov 4, 2024
24 of 25 checks passed
@louwers
Copy link
Collaborator

louwers commented Nov 4, 2024

Thank you, will be part of the next release.

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.

Change HttpRequestImpl client to Call.Factory
2 participants