Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 109 for amatch (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          try {
            writer.windowUpdate(streamId, unacknowledgedBytesRead)
          } catch (e: IOException) {
            failConnection(e)
          }
        }
      }
    
      fun writePing(
        reply: Boolean,
        payload1: Int,
        payload2: Int,
      ) {
        try {
          writer.ping(reply, payload1, payload2)
        } catch (e: IOException) {
          failConnection(e)
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

              val exchange = response.exchange
              val streams: Streams
              try {
                checkUpgradeSuccess(response, exchange)
                streams = exchange!!.newWebSocketStreams()
              } catch (e: IOException) {
                failWebSocket(e, response)
                response.closeQuietly()
                exchange?.webSocketUpgradeFailed()
                return
              }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        try {
          ensureAllConnectionsReleased()
          releaseClient()
        } catch (ae: AssertionError) {
          result += ae
        }
    
        try {
          if (taskQueuesWereIdle) {
            ensureAllTaskQueuesIdle()
          }
        } catch (ae: AssertionError) {
          result += ae
        }
    
        if (result != null) throw result
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/android/StandardAndroidSocketAdapter.kt

            val paramsClass = Class.forName("$packageName.SSLParametersImpl")
    
            StandardAndroidSocketAdapter(sslSocketClass, sslSocketFactoryClass, paramsClass)
          } catch (e: Exception) {
            AndroidLog.androidLog(
              loggerName = OkHttpClient::class.java.name,
              logLevel = Platform.WARN,
              message = "unable to load android socket classes",
              t = e,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        try (Response response = call.execute()) {
          System.out.printf("%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, response);
        } catch (IOException e) {
          System.out.printf("%.2f Call failed as expected: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, e);
        }
      }
    
      public static void main(String... args) throws Exception {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  6. docs/features/interceptors.md

     * Are always invoked once, even if the HTTP response is served from the cache.
     * Observe the application's original intent. Unconcerned with OkHttp-injected headers like `If-None-Match`.
     * Permitted to short-circuit and not call `Chain.proceed()`.
     * Permitted to retry and make multiple calls to `Chain.proceed()`.
     * Can adjust Call timeouts using withConnectTimeout, withReadTimeout, withWriteTimeout.
    
    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)
  7. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

          try {
            val testClass = access.findClassByName(it)
    
            if (testClass != null) {
              access.registerAsUsed(testClass)
              registerTest(access, testClass)
            }
          } catch (e: Exception) {
            // If you throw an exception here then native image building fails half way through
            // silently without rewriting the binary. So we report noisily, but keep going and prefer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        }
    
      fun requestIOException() =
        apply {
          actions += { stream ->
            try {
              stream.requestBody.exhausted()
              throw AssertionError("expected IOException")
            } catch (expected: IOException) {
            }
          }
        }
    
      @JvmOverloads
      fun sendResponse(
        s: String,
        responseSent: CountDownLatch = CountDownLatch(0),
      ) = apply {
        actions += { stream ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

              mainMethod.invoke(null)
            } else {
              mainMethod.invoke(null, arrayOf<String>())
            }
          } else {
            System.err.println("No main for $className")
          }
        } catch (ite: InvocationTargetException) {
          if (!expectedFailure(className, ite.cause!!)) {
            throw ite.cause!!
          }
        }
      }
    
      @Suppress("UNUSED_PARAMETER")
      private fun expectedFailure(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. settings.gradle.kts

      return try {
        val (major, minor, _) = ideaVersionString.split(".", limit = 3)
        KotlinVersion(major.toInt(), minor.toInt()) < KotlinVersion(2023, 2)
      } catch (e: Exception) {
        false // Unknown version, presumably compatible.
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top