okhttp_arch
2017-04-07 23:04:22 0 举报
OkHttp是一个高效的HTTP客户端,用于Android和Java应用。它的主要特点是支持HTTP/2、连接池、请求和响应缓存等。OkHttp Arch(okhttp_arch)是OkHttp的一个分支,专注于优化网络架构,提高性能和稳定性。通过使用OkHttp Arch,开发者可以在Android和Java应用中实现更快的数据传输和更低的网络延迟。此外,OkHttp Arch还提供了一些高级功能,如自定义证书验证、自动重定向处理等,以满足不同场景的需求。总之,OkHttp Arch是一个强大且灵活的HTTP客户端库,适用于各种规模的项目。
作者其他创作
大纲/内容
Dispatcher
- Runnable idleCallback- DequereadyAsyncCalls- DequerunningAsyncCalls- DequerunningSyncCalls
Authenticator
CertificateChainCleaner
+
ConnectionPool
- Executor executor- int maxIdleConnections- long keepAliveDuratioNs- Runnable cleanupRunnable- Deque connections- RouteDatabase routeDatabase- boolean cleanupRunning
enum Protocol
+ HTTP_1_0+ HTTP_1_1+ SPDY_3+ HTTP_2
OkHttpClient
- Dispatcher dispatcher- Proxy proxy- List protocols- Listinterceptors- ListnetworkInterceptor- ProxySelector proxySelctor- CookieJar cookieJar- Cache cache- InternalCache internalCache- SocketFactory socketFactory- SSLSocketFactory sslSocketFactory- CertificateChainCleaner certificateChainCleaner- HostnameVerifier hostnameVerifier- Authenticator proxyAuthenticator- Authenticator authenticator- ConnectionPool connectionPool- Dns dns
Interceptor
+ Response intercept(Chain chain)
Dns
+ Listlookup(String hostname)
InternalCache
0 条评论
下一页