Closed
Description
Since 1.14+ have a hard dependency on OkHttp, I think it would be great to expose the ability to specify the OkHttpClient to use. We would probably have to have them pass an OkHttpClient.Builder, so that we can add things to it as needed, and override things if necessary, but this would be great because we would then be exposing many things that were not previously exposed, such as HTTP timeouts, the ability to specify things like certificate pinning, and would eliminate the need for the class ParseNetworkInterceptor
.
What do you think @rogerhu ? I am happy to make a PR with this, keeping in mind backwards compatibility.
Metadata
Metadata
Assignees
Labels
No labels