OkHttp v3.3.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>Fix: The plaintext check in HttpLoggingInterceptor incorrectly classified newline characters as control characters. This is fixed.</li>     <li>Fix: Don't crash reading non-ASCII characters in HTTP/2 headers or in cached HTTP headers.</li>     <li>Fix: Retain the response body when an attempt to open a web socket returns a non-101 response code.</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958990914786069771">v3.3.1 JAR</a></li>     <li><a href="/misc/goto?guid=4958990914898839284" rel="nofollow">Source code (zip)</a></li>     <li><a href="/misc/goto?guid=4958990914979591007" rel="nofollow">Source code (tar.gz)</a></li>    </ul>