On Java platforms OkHttp also supportsĬonscrypt, which integrates BoringSSL with Java.CustomizerGod is a portable tool which allows you to view, extract and change almost any Windows icon. OkHttp uses your platform’s built-in TLS implementation. Track the dynamic TLS ecosystem and adjust OkHttp to improve connectivity and With HTTPS clients is an important defense against potential security problems. As with auto-updating web browsers, staying current We highly recommend you keep OkHttp up-to-date. Both are small libraries with strong backward-compatibility. OkHttp depends on Okio for high-performance I/O and the Kotlin standard library. OkHttp works on Android 5.0+ (API level 21+) and Java 8+. get ( "application/json" ) OkHttpClient client = new OkHttpClient () String post ( String url, String json ) throws IOException įurther examples are on the OkHttp Recipes page. Public static final MediaType JSON = MediaType. This program downloads a URL and prints its contents as a string. Supports both synchronous blocking calls and async calls with callbacks. Its request/response API is designed with fluent builders and immutability. It can beĬonfigured to fall back for broad connectivity. OkHttp supports modern TLS features (TLS 1.3, ALPN, certificate pinning). This is necessary for IPv4+IPv6 and services hosted in redundant dataĬenters. If your service has multiple IP addresses, OkHttp will attempt alternate addresses if theįirst connect fails. OkHttp perseveres when the network is troublesome: it will silently recover from common connection Response caching avoids the network completely for repeat requests.Transparent GZIP shrinks download sizes.Connection pooling reduces request latency (if HTTP/2 isn’t available).HTTP/2 support allows all requests to the same host to share a socket.OkHttp is an HTTP client that’s efficient by default: Doing HTTPĮfficiently makes your stuff load faster and saves bandwidth. HTTP is the way modern applications network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |