- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 127 for Network (0.15 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt
/** * A concrete interceptor chain that carries the entire interceptor chain: all application * interceptors, the OkHttp core, all network interceptors, and finally the network caller. * * If the chain is for an application interceptor then [exchange] must be null. Otherwise it is for * a network interceptor and [exchange] must be non-null. */ class RealInterceptorChain( internal val call: RealCall,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
} @Test fun networkInterceptorsRewriteRequestToServer() { rewriteRequestToServer(true) } private fun rewriteRequestToServer(network: Boolean) { server.enqueue(MockResponse()) addInterceptor(network) { chain: Interceptor.Chain -> val originalRequest = chain.request() chain.proceed( originalRequest.newBuilder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
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) -
container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt
import org.testcontainers.containers.MockServerContainer import org.testcontainers.containers.Network import org.testcontainers.junit.jupiter.Container import org.testcontainers.junit.jupiter.Testcontainers import org.testcontainers.utility.DockerImageName @Testcontainers class SocksProxyTest { val network: Network = Network.newNetwork() @Container val mockServer: MockServerContainer =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.6K bytes - Viewed (0) -
maven-core/src/site/apt/offline-mode.apt
the system can't tell whether it has access to the network required by these operations. Offline mode really means anticipating a lack of network connectivity, and as a result turning off certain services provided by m2 and providing a coherent way of predicting and reporting when network-related failures will take place. It means warning users that since the network is missing, certain features and
Plain Text - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Mar 18 00:24:53 GMT 2024 - 10.6K bytes - Viewed (0) -
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) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
} companion object { /** * Cache control request directives that require network validation of responses. Note that such * requests may be assisted by the cache via conditional GET requests. */ @JvmField val FORCE_NETWORK = commonForceNetwork() /** * Cache control request directives that uses the cache only, even if the cached response is
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 10K bytes - Viewed (0) -
okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt
* * Two instances must be used to get all results for an address. * * @param network network to use, if not selects the default network. */ @RequiresApi(Build.VERSION_CODES.Q) @ExperimentalOkHttpApi class AndroidAsyncDns( private val dnsClass: AsyncDns.DnsClass, private val network: Network? = null, ) : AsyncDns { @RequiresApi(Build.VERSION_CODES.Q) internal val resolver = DnsResolver.getInstance()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 10:07:48 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager val network = connectivityManager.activeNetwork ?: throw AssumptionViolatedException("No active network") val client = OkHttpClient.Builder() .dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6)) .socketFactory(network.socketFactory) .build() val call =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
cni/README.md
The ambient CNI agent is the only place where ambient network config and pod redirection machinery happens.
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 12.3K bytes - Viewed (0)