- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 76 for Networks (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/ResponseBody.kt
* imposes both obligations and limits on the client application. * * ### The response body must be closed. * * Each response body is backed by a limited resource like a socket (live network responses) or * an open file (for cached responses). Failing to close the response body will leak resources and * may ultimately cause the application to slow down or crash. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt
promisedStreamId: Int, requestHeaders: List<Header>, ) /** * HTTP/2 only. Expresses that resources for the connection or a client- initiated stream are * available from a different network location or protocol configuration. * * See [alt-svc][alt_svc]. * * [alt_svc]: http://tools.ietf.org/html/draft-ietf-httpbis-alt-svc-01 *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 19.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
@Test fun webSocketAndNetworkInterceptors() { client = client.newBuilder() .addNetworkInterceptor( Interceptor { chain: Interceptor.Chain? -> throw AssertionError() // Network interceptors don't execute. }, ) .build() webServer.enqueue( MockResponse.Builder() .webSocketUpgrade(serverListener) .build(), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 35.2K bytes - Viewed (1) -
okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt
var responder: (Request) -> Unit = { it.callback.onAnswer(listOf(), 0) } data class Request( val network: Network?, val domain: String, val nsType: Int, val flags: Int, val callback: DnsResolver.Callback<List<InetAddress>>, ) @Implementation fun query( network: Network?, domain: String, nsType: Int, flags: Int, executor: Executor,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 22 20:07:09 GMT 2024 - 1.7K bytes - Viewed (1) -
okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
shadowDns.responder = { throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.") } val dns = AsyncDns.toDns(asyncDns) assertFailure { dns.lookup("google.invalid") }.apply { hasMessage("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.") isInstanceOf(UnknownHostException::class) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 22 20:07:09 GMT 2024 - 1.6K bytes - Viewed (0) -
docs/features/interceptors.md
Content-Length: 1759 Connection: keep-alive ``` The network requests also contain more data, such as the `Accept-Encoding: gzip` header added by OkHttp to advertise support for response compression. The network interceptor's `Chain` has a non-null `Connection` that can be used to interrogate the IP address and TLS configuration that were used to connect to the webserver. ### Choosing between application and network interceptors
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 8.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java
System.out.println("Response 1 response: " + response1); System.out.println("Response 1 cache response: " + response1.cacheResponse()); System.out.println("Response 1 network response: " + response1.networkResponse()); } String response2Body; try (Response response2 = client.newCall(request).execute()) {
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 2.4K bytes - Viewed (0) -
README.md
* Response caching avoids the network completely for repeat requests. OkHttp perseveres when the network is troublesome: it will silently recover from common connection problems. If your service has multiple IP addresses, OkHttp will attempt alternate addresses if the first connect fails. This is necessary for IPv4+IPv6 and services hosted in redundant data
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 6.2K bytes - Viewed (0) -
okhttp-android/src/androidTest/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="okhttp.android.test"> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
XML - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 20 06:48:45 GMT 2022 - 195 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/WebSocketListener.kt
*/ open fun onClosed( webSocket: WebSocket, code: Int, reason: String, ) { } /** * Invoked when a web socket has been closed due to an error reading from or writing to the * network. Both outgoing and incoming messages may have been lost. No further calls to this * listener will be made. */ open fun onFailure( webSocket: WebSocket, t: Throwable, response: Response?, ) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0)