Netty for Android Client
Introduction
- user library of
io.netty:netty-all:4.1.16.Final
- parse data of
gson-2.7
Simple
Gradle
dependencies {
compile 'com.github.kotow-hub:NettyAndroid:latest.release'
}
PS
- look at the
EncodeHandler
The content’s length and int
’s length are the length of request’s body, see the size + 4
- look at the
DecodeHandler
The content's length and int
's length are the length of response's body, see the 'in'.readInt() - 4