Score
0
Watch 27 Star 61 Fork 9

Xiaolei123 / OkHttpHelperAndroid

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
网络请求缓存的支持,OKHttp Retrofit (get,post,一切,文字,图片,语音,文件,自定义缓存目录):CacheInterceptor.javaGzip网络数据压缩的支持:GzipRequestInterceptor.java会话的支持:SSessionInterceptor.javaCookie的本地持久化支持:CookieJar.java spread retract

Clone or download
Loading...
README.md

OkHttpHelper

an util of the okhttp

 implementation 'com.xiaolei:OkHttpUtil:1.1.5'

网络请求缓存的支持(get,post,一切,文字,图片,语音,文件,SQLite,自定义缓存目录):

CacheInterceptor.java

/**
 * 选择缓存方式,是缓存文件的方式,还是SQLite的方式
 */
public static enum Type
{
    FILE, SQLITE
}

Gzip网络数据压缩的支持:GzipRequestInterceptor.java

会话的支持:SSessionInterceptor.java

Cookie的本地持久化支持:CookieJar.java

Comments ( 8 )

Sign in for post a comment

Android
1
https://gitee.com/xcode_xiao/OkHttpHelper.git
git@gitee.com:xcode_xiao/OkHttpHelper.git
xcode_xiao
OkHttpHelper
OkHttpHelper
master

Help Search