bjnetwork

A network client based on OKHttp3

License

License

Categories

Categories

Net
GroupId

GroupId

io.github.yangxlei
ArtifactId

ArtifactId

bjnetwork
Last Version

Last Version

1.6.0
Release Date

Release Date

Type

Type

aar
Description

Description

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 bjnetwork

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.github.yangxlei : cache jar 1.3.0
com.squareup.okhttp3 : okhttp jar 3.3.1

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