Registry / http-client / okhttp3-integration

okhttp3-integration

JSON →
library5.0.7javamavenunverified

Integration library for using OkHttp 3.x as the HTTP stack for fetching images in the Glide image loading library.

<dependency> <groupId>com.github.bumptech.glide</groupId> <artifactId>okhttp3-integration</artifactId> <version>5.0.7</version> </dependency>
INSTALL
IMPORT
SIG · OKHTTP3-INTEGRATIO
O
okhttp3-integration
http-clientjavav5.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OkHttpUrlLoader
com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader

Register OkHttp as Glide's HTTP loader

import com.bumptech.glide.Glide; import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader; import com.bumptech.glide.load.model.GlideUrl; import okhttp3.OkHttpClient; public class GlideOkHttpQuickstart { public static void main(String[] args) { OkHttpClient client = new OkHttpClient(); Glide.get(/* context */).getRegistry() .replace(GlideUrl.class, java.io.InputStream.class, new OkHttpUrlLoader.Factory(client)); } }
Debug
Known issues
breakingRequires Glide 4.x; not compatible with Glide 3.x.
fix
Use Glide 4.x and ensure okhttp3-integration version matches Glide version.
affects: <5.0.0
Upgrade
Version history
5.0.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
okhttp3-integration — mvn dependency:get okhttp3-integration · libregistry