Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Omega-R/OmegaGZipInterceptor

Repository files navigation

OmegaGZipInterceptor

helper unziping files from server

Installation

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

dependencies {
    compile 'com.github.Omega-R:OmegaGZipInterceptor:1.1.0'
}

Usage

Example of usage

OkHttpClient client = new OkHttpClient.Builder()
                .retryOnConnectionFailure(true)
                .addInterceptor(new AcceptGzipInterceptor())
                .addInterceptor(new UngzippingInterceptor())
                .build();