- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 146 for Protocol (0.19 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt
return try { // SSLSocket.getApplicationProtocol returns "" if application protocols values will not // be used. Observed if you didn't specify SSLParameters.setApplicationProtocols when (val protocol = sslSocket.applicationProtocol) { null, "" -> null else -> protocol } } catch (e: UnsupportedOperationException) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HandshakeTest.kt
} } class FakeSSLSession( private val protocol: String, private val cipherSuite: String, private val peerCertificates: Array<Certificate>?, private val localCertificates: Array<Certificate>?, ) : DelegatingSSLSession(null) { override fun getProtocol() = protocol override fun getCipherSuite() = cipherSuite
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/TestTls13Request.kt
.url(url) .build() try { client.newCall(request).execute().use { response -> val handshake = response.handshake println( "${handshake!!.tlsVersion} ${handshake.cipherSuite} ${response.protocol} " + "${response.code} ${response.body.bytes().size}b", ) } } catch (ioe: IOException) { println(ioe) } } fun main(vararg args: String) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
// If we're forbidden from using the network and the cache is insufficient, fail. if (networkRequest == null && cacheResponse == null) { return Response.Builder() .request(chain.request()) .protocol(Protocol.HTTP_1_1) .code(HTTP_GATEWAY_TIMEOUT) .message("Unsatisfiable Request (only-if-cached)") .sentRequestAtMillis(-1L) .receivedResponseAtMillis(System.currentTimeMillis())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 10.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
url = server.url("/") setLevel(Level.BASIC) server.enqueue(MockResponse()) val response = client.newCall(request().build()).execute() Assumptions.assumeTrue(response.protocol == Protocol.HTTP_2) applicationLogs .assertLogEqual("--> GET $url") .assertLogMatch(Regex("""<-- 200 $url \(\d+ms, 0-byte body\)""")) .assertNoMoreLogs() networkLogs
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ) { logWithTime("connectEnd: $protocol") } override fun connectFailed( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ioe: IOException, ) { logWithTime("connectFailed: $protocol $ioe") } override fun connectionAcquired( call: Call,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
body.close() } fun Response.commonToString(): String = "Response{protocol=$protocol, code=$code, message=$message, url=${request.url}}" fun Response.Builder.commonRequest(request: Request) = apply { this.request = request } fun Response.Builder.commonProtocol(protocol: Protocol) = apply { this.protocol = protocol } fun Response.Builder.commonCode(code: Int) = apply {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 5.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt
fun secureConnectStart() fun secureConnectEnd(handshake: Handshake?) fun callConnectEnd( route: Route, protocol: Protocol?, ) fun connectionConnectEnd( connection: Connection, route: Route, ) fun connectFailed( route: Route, protocol: Protocol?, e: IOException, ) fun connectionAcquired(connection: Connection)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/PoolConnectionUser.kt
} override fun callConnectEnd( route: Route, protocol: Protocol?, ) { } override fun connectionConnectEnd( connection: Connection, route: Route, ) { } override fun connectFailed( route: Route, protocol: Protocol?, e: IOException, ) { } override fun connectionAcquired(connection: Connection) { }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 20:39:41 GMT 2024 - 2.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val i = HttpLoggingInterceptor() builder.interceptors().add(i) builder.networkInterceptors().add(i) } @Test fun protocol() { var protocol: Protocol = Protocol.HTTP_2 protocol = Protocol.get("") } @Test fun pushPromise() { val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4)