rx-bjnetwork

A network client based on OKHttp3

License

License

Categories

Categories

Net
GroupId

GroupId

io.github.yangxlei
ArtifactId

ArtifactId

rx-bjnetwork
Last Version

Last Version

1.6.0
Release Date

Release Date

Type

Type

aar
Description

Description

rx-bjnetwork
A network client based on OKHttp3
Project URL

Project URL

https://github.com/yangxlei/network
Source Code Management

Source Code Management

https://github.com/yangxlei/network

Download rx-bjnetwork

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.yangxlei/rx-bjnetwork/ -->
<dependency>
    <groupId>io.github.yangxlei</groupId>
    <artifactId>rx-bjnetwork</artifactId>
    <version>1.6.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.yangxlei/rx-bjnetwork/
implementation 'io.github.yangxlei:rx-bjnetwork:1.6.0'
// https://jarcasting.com/artifacts/io.github.yangxlei/rx-bjnetwork/
implementation ("io.github.yangxlei:rx-bjnetwork:1.6.0")
'io.github.yangxlei:rx-bjnetwork:aar:1.6.0'
<dependency org="io.github.yangxlei" name="rx-bjnetwork" rev="1.6.0">
  <artifact name="rx-bjnetwork" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.yangxlei', module='rx-bjnetwork', version='1.6.0')
)
libraryDependencies += "io.github.yangxlei" % "rx-bjnetwork" % "1.6.0"
[io.github.yangxlei/rx-bjnetwork "1.6.0"]

Dependencies

compile (3)

Group / Artifact Type Version
io.reactivex : rxandroid jar 1.2.1
io.reactivex : rxjava jar 1.1.6
io.github.yangxlei : bjnetwork jar 1.6.0

Project Modules

There are no modules declared in this project.

bjnetwork

A network client based OKHttp

基于 OKHttp 包装的网络工具库,包含功能:

  • cache, cookie 缓存处理
  • Http2, Spdy 支持
  • 日志输出开关
  • 上传下载进度
  • RxJava
  • WebSocket
  • 等等。

详细可跳转至:OKHttp源码浅析与最佳实践

#V1.6.0 修复自动重连时主动关闭失败问题

集成方式:

compile 'io.github.yangxlei:bjnetwork:1.6.0'

RxJava 扩展:

compile 'io.github.yangxlei:rx-bjnetwork:1.6.0'

WebSocket 扩展:

compile 'io.github.yangxlei:bjnetwork-ws:1.6.0'

Versions

Version
1.6.0
1.5.2
1.5.1
1.4.1