- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for inTunnel (0.05 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
constructor( code: Int = 200, headers: Headers = headersOf(), body: String = "", inTunnel: Boolean = false, socketPolicy: SocketPolicy = KeepOpen, ) : this( Builder() .apply { this.code = code this.headers.addAll(headers) if (inTunnel) inTunnel() this.body(body) this.socketPolicy = socketPolicy }, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
when (socketPolicy) { SocketPolicy.EXPECT_CONTINUE, SocketPolicy.CONTINUE_ALWAYS -> { result.add100Continue() KeepOpen } SocketPolicy.UPGRADE_TO_SSL_AT_END -> { result.inTunnel() KeepOpen } else -> wrapSocketPolicy() } result.throttleBody(throttleBytesPerPeriod, getThrottlePeriod(MILLISECONDS), MILLISECONDS) result.bodyDelay(getBodyDelay(MILLISECONDS), MILLISECONDS)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .proxy(server.toProxyAddress()) .build() server.enqueue(MockResponse(inTunnel = true)) server.enqueue(MockResponse()) val call = client.newCall( Request( url = server.url("/").newBuilder() .host(hostnameOrIpAddress)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
server.enqueue( MockResponse( code = 407, headers = headersOf("Proxy-Authenticate", "Basic realm=\"localhost\""), inTunnel = true, ), ) server.enqueue( MockResponse(inTunnel = true), ) server.enqueue( MockResponse(body = "response body"), ) client = client.newBuilder() .sslSocketFactory(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
server.useHttps(handshakeCertificates.sslSocketFactory()) val queueDispatcher = QueueDispatcher() queueDispatcher.enqueueResponse(MockResponse(inTunnel = true)) queueDispatcher.enqueueResponse(MockResponse(inTunnel = true)) queueDispatcher.enqueueResponse(MockResponse(body = "call2 response")) queueDispatcher.enqueueResponse(MockResponse(body = "call1 response"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 56.9K bytes - Viewed (2) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
* calls should be attempted on the socket. */ @Throws(IOException::class, InterruptedException::class) private fun processTunnelRequests(): Boolean { if (!dispatcher.peek().inTunnel) return true // No tunnel requests. val source = raw.source().buffer() val sink = raw.sink().buffer() while (true) { val socketStillGood = processOneRequest(raw, source, sink)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
server.enqueue( MockResponse( code = 407, headers = headersOf("Proxy-Authenticate", "Basic realm=\"localhost\""), inTunnel = true, ), ) server.enqueue(MockResponse(inTunnel = true)) server.enqueue(MockResponse(body = "A")) client = client.newBuilder() .proxyAuthenticator(Authenticator.JAVA_NET_AUTHENTICATOR)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public final fun headers (Lokhttp3/Headers;)Lmockwebserver3/MockResponse$Builder; public final fun headersDelay (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/MockResponse$Builder; public final fun inTunnel ()Lmockwebserver3/MockResponse$Builder; public final fun removeHeader (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder; public final fun setBody (Lmockwebserver3/MockResponseBody;)V public final fun setCode (I)V
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
CHANGELOG.md
This is only relevant for duplex request bodies, because they are written concurrently when reading the response body. * New: `MockResponse.inTunnel()` is a new `mockwebserver3` API to configure responses that are served while creating a proxy tunnel. This obsoletes both the `tunnelProxy` argument on
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:31:39 UTC 2024 - 21.4K bytes - Viewed (0)