OkHttp v3.4.1 发布,一个高效的Http客户端
jopen 8年前
<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/a6dcb578e17e7b0fb37f34f8fe57f157.png" /> </p> <p>OkHttp是一个高效的Http客户端,在Android开发中被大量使用,主要有如下的特点:</p> <ul> <li>支持HTTP2/SPDY黑科技</li> <li>socket自动选择最好路线,并支持自动重连</li> <li>拥有自动维护的socket连接池,减少握手次数</li> <li>拥有队列线程池,轻松写并发</li> <li>拥有Interceptors轻松处理请求与响应(比如透明GZIP压缩,LOGGING)</li> <li>基于Headers的缓存策略</li> </ul> <h2>更新日志</h2> <ul> <li><strong>Fix an major bug in encoding HTTP headers.</strong> In 3.4.0 and 3.4.0-RC1 OkHttp had an off-by-one bug in our HPACK encoder. This bug could have caused the wrong headers to be emitted after a sequence of HTTP/2 requests! Everyone who is using OkHttp 3.4.0 or 3.4.0-RC1 should upgrade for this bug fix.</li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958992008743795831" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958992008871377004" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul> <p> </p>