Giter Club home page Giter Club logo

xiaohaotoutou2 / okhttp3demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linzhiyong/okhttp3demo

0.0 0.0 0.0 158 KB

1. OkHttpClient基本参数配置介绍 2. 普通GET请求(同步/异步) 3. 普通POST请求(同步/异步) 4. 根据tag取消请求 5. POST请求提交String 6. POST请求提交流 7. POST请求提交JSON(实体转JSON) 8. POST请求提交普通Form表单 9. POST请求提交混合Form表单(文本参数+文件) 10. POST请求提交单/多文件(带进度条) 11. GET请求下载文件(带进度条)

Java 100.00%

okhttp3demo's Introduction

OkHttp3Demo

博客地址

OkHttp3入门介绍

https://www.jianshu.com/p/af144d662bfd
https://blog.csdn.net/u012527802/article/details/81013772
https://juejin.im/post/5b46a8625188251af53dcb8d

OkHttp3入门介绍之Cookie持久化

https://www.jianshu.com/p/23b35d403148
https://blog.csdn.net/u012527802/article/details/81220301
https://juejin.im/post/5b596f315188251aef4e683c

服务端地址

https://github.com/linzhiyong/SpringMVCDemo

简介

OkHttp是一个处理网络请求的开源项目,是安卓端最火热的轻量级框架,本文主要介绍OkHttp3的基本使用方法。 结合自己的项目经验,主要从以下几方面介绍:

  1. OkHttpClient基本参数配置介绍
  2. 普通GET请求(同步/异步)
  3. 普通POST请求(同步/异步)
  4. 根据tag取消请求
  5. POST请求提交String
  6. POST请求提交流
  7. POST请求提交JSON(实体转JSON)
  8. POST请求提交普通Form表单
  9. POST请求提交混合Form表单(文本参数+文件)
  10. POST请求提交单/多文件(带进度条)
  11. GET请求下载文件(带进度条)
  12. Cookie处理,支持本地缓存和内存缓存

okhttp3demo's People

Contributors

linzhiyong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.