bumptech / bumptech/glide

How to inject OkHttpClient instance

Open
#2,002 19 comments 5 reactions 0 assignees View on GitHub
documentation enhancement
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

According to [OkHttp jdoc](http://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpClient.html):
>OkHttpClients should be shared

I notice that the OkHttp integration module generate a OkHttpClient internal instance. It would be better to allow us inject the singleton OkHttpClient within our application.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.