- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for useAsSocket (0.07 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} } @Throws(IOException::class) fun peekTrailers(): Headers? = codec.peekTrailers() fun upgradeToSocket(): Socket { call.upgradeToSocket() (codec.carrier as RealConnection).useAsSocket() return object : Socket { override fun cancel() { ******@****.***() } override val sink = RequestBodySink( delegate = codec.socket.sink,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt
okHttpSocket.sink.timeout().timeout(chain.writeTimeoutMillis.toLong(), MILLISECONDS) Http1ExchangeCodec(client, this, okHttpSocket) } } internal fun useAsSocket() { javaNetSocket.soTimeout = 0 noNewExchanges() } override fun route(): Route = route override fun cancel() { // Close the raw socket so we don't end up doing synchronous I/O.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 14.6K bytes - Click Count (0)