Skip to content

OkHttp3 Stack that can be used to replace default Volley's Stack to improve performance

Notifications You must be signed in to change notification settings

IONsoft-Indonesia/OkHttp3StackForVolley

Repository files navigation

OkHttp3StackForVolley

OkHttp3 Stack that can be used to replace default Volley's Stack to improve performance

How to use?

Step 1.

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

Step 2.

Add the dependency

dependencies {
  compile 'com.github.IONsoft-Indonesia:OkHttp3StackForVolley:1.0'
}

Step 3.

Replace Volley.newRequestQueue(context); with Volley.newRequestQueue(context, new OkHttp3Stack()); and you good to go. You might want to keep reference to the OkHttp3Stack if you want to cancel the request.

About

OkHttp3 Stack that can be used to replace default Volley's Stack to improve performance

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages