All Projects → GateOfTruth → OkSimple

GateOfTruth / OkSimple

Licence: other
OkSimple :powerful and simple okhttp network library

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to OkSimple

Nohttp
🍋 Android实现Http标准协议框架,支持多种缓存模式,底层可动态切换OkHttp、URLConnection。
Stars: ✭ 3,714 (+6415.79%)
Mutual labels:  restful, okhttp
Okhttp Okgo
OkGo - 3.0 震撼来袭,该库是基于 Http 协议,封装了 OkHttp 的网络请求框架,比 Retrofit 更简单易用,支持 RxJava,RxJava2,支持自定义缓存,支持批量断点下载管理和批量上传管理功能
Stars: ✭ 10,407 (+18157.89%)
Mutual labels:  restful, okhttp
Nohttprxutils
🐠 本库是一款Android-Http标准协议网络通讯框架,基于RxJava+NoHttp封装。支持文件上传和断点续传、文件下载和断点下载、Http协议和Https协议队列网络请求、网络请求轮询。
Stars: ✭ 214 (+275.44%)
Mutual labels:  restful, okhttp
restful-services-in-pyramid
RESTful / HTTP services in Pyramid and Python course handout materials
Stars: ✭ 56 (-1.75%)
Mutual labels:  restful
dubai
迪拜后台系统框架:基于Springside、Mysql、Bootstrap2的后台系统框架,旨在为繁杂的各种业务流程提供一个界面简约、操作高效、运行稳定、容易集成和横向扩展的开发基础框架及规范。
Stars: ✭ 45 (-21.05%)
Mutual labels:  restful
WanAndroid
wanandroid的Kotlin版,采用Android X
Stars: ✭ 20 (-64.91%)
Mutual labels:  okhttp
java-crud-api
No description or website provided.
Stars: ✭ 24 (-57.89%)
Mutual labels:  restful
express-rest-api
🍺 RESTful API sample in Express, Mongoose and ES6.
Stars: ✭ 28 (-50.88%)
Mutual labels:  restful
heimdall
Painless OAuth 2.0 Server for CodeIgniter 4 🔥
Stars: ✭ 36 (-36.84%)
Mutual labels:  restful
Spring-Boot-2
Spring Boot 2.x examples
Stars: ✭ 33 (-42.11%)
Mutual labels:  restful
BlobHelper
BlobHelper is a common, consistent storage interface for Microsoft Azure, Amazon S3, Komodo, Kvpbase, and local filesystem written in C#.
Stars: ✭ 23 (-59.65%)
Mutual labels:  restful
angular6-httpclient-example
Angular 6 HttpClient: Consume RESTful API Example
Stars: ✭ 38 (-33.33%)
Mutual labels:  restful
fintech
python fintech docs
Stars: ✭ 20 (-64.91%)
Mutual labels:  restful
MVPHulk
Android MVP 快速集成方案 (支持AndroidX)
Stars: ✭ 19 (-66.67%)
Mutual labels:  okhttp
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (+38.6%)
Mutual labels:  okhttp
OkHttpUtils
【Deprecated】Android 方便,简洁的OKHttp工具类,支持Model自动解析Json,多图片、多文件上传
Stars: ✭ 28 (-50.88%)
Mutual labels:  okhttp
MyFrame
一个简易的Android快速开发框架 ,集成了好多大神的框架
Stars: ✭ 13 (-77.19%)
Mutual labels:  okhttp
Relaxation
Relaxation is a REST framework for ColdFusion that helps you build a REST API. And then it get's the heck out of your way.
Stars: ✭ 22 (-61.4%)
Mutual labels:  restful
bdd-for-all
Flexible and easy to use library to enable your behavorial driven development (BDD) teams to easily collaborate while promoting automation, transparency and reporting.
Stars: ✭ 42 (-26.32%)
Mutual labels:  restful
SLazeKit
SLazeKit is a framework providing models mapper and CoreData serializer for RESTful resources.
Stars: ✭ 23 (-59.65%)
Mutual labels:  restful

OKsimple:简单易用,扩展性强,基于okhttp4.X版本和kotlin的网络请求框架。

目前实现的功能

  • get,post,postjson,表单提交等常规请求
  • 支持HEAD,DELETE,PATCH,PUT等其他http method
  • 支持同步异步请求
  • 强大的请求策略系统,支持定时请求,轮询请求,请求失败切换域名等等复杂操作
  • 多文件下载,支持进度监听,支持断点续传
  • 多文件上传,支持进度监听
  • 支持接入glide实现glide图片加载进度监听
  • 全局请求头和全局参数的添加
  • 每次请求默认添加tag,支持自定义tag
  • 每次请求支持自定义CacheControl
  • 对短时间多次相同的请求进行了拦截处理,有效防止用户多次点击导致的重复请求
  • 在没有网络的情况下,可以添加force cache
  • 基于kotlin但也对java做了支持
  • 同步okhttp最新版本,支持brotli compression

项目介绍

强大好用的网络请求框架。基于okhttp4.X和kotlin,目前更新到okttp4.9。采用链式回调,不用再写一堆接口和类,轻量级,扩展性强,欢迎star,也欢迎提issue,pr或者其他建议。

minSdkVersion

Oksimple目前minsdkversion是21,一些用我这个lib朋友希望我能支持到19,我的想法是oksimple没有支持19的打算。首先okhttp 3.13以后的版本,对minsdkversion的版本要求都变成21了。原因的话,官方有给出解释,大意是说出于https安全方面的考虑,具体可以参考这篇文章。如果你还想兼容android 5.0以下的版本,可以使用okhttp的3.12.x版本。但oksimple目前是基于4.X开发,没有针对 okhttp 3.12版本重写的打算。这里说一点题外话,其实像微信的最新版,minsdkversion都变成21了。支持到19,中间的20是kitkat wear,是针对智能手表一类的设备的。如果你做的是针对手机的app,那kitkat wear其实和你没什么关系。所以21到19,看似多支持了2个版本,其实只是多支持了一个版本。为了19这个已经落后很多年的版本,有些时候你需要多写很多代码和适配,我个人感觉是没有必要的。

demo

github上的demo演示里,用的都是第三方的地址。但功能的话,都是经过实际使用测试的。如果确实有问题的话,欢迎提issue。

接入方法

在根节点的build.gradle引入jitpack

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

注意,如果你使用的是新版的Android studio,你还需要在settings.gradle中进行配置

dependencyResolutionManagement {
   //
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}
//

然后在app的build.gradle

implementation 'com.github.GateOfTruth:OkSimple:3.3.3'
或者你也可以fork一下,自己编译,oksimple只依赖了okhttp,没有其他依赖,编译出来的aar包也只有30几KB,同时,Oksimple采用api引入okhttp,所以你引入了oksimple的话,就不用重新引入okhttp了。

使用方法

使用方法现移动到wiki,更加直观和便于查阅。请点击查看。

更新日志

点击这里查看每次版本更新

License

Copyright 2019 GateOfTruth, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].