Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for Dailey (0.31 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/PerCallSettings.java

            .build();
        try (Response response = client1.newCall(request).execute()) {
          System.out.println("Response 1 succeeded: " + response);
        } catch (IOException e) {
          System.out.println("Response 1 failed: " + e);
        }
    
        // Copy to customize OkHttp for this request.
        OkHttpClient client2 = client.newBuilder()
            .readTimeout(3000, TimeUnit.MILLISECONDS)
            .build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          extensionContext: ExtensionContext,
        ) {
          var failed = false
          try {
            invocation.proceed()
          } catch (e: TestAbortedException) {
            throw e
          } catch (e: Throwable) {
            failed = true
            rethrowIfNotExpected(e)
          } finally {
            resetPlatform()
          }
          if (!failed) {
            failIfExpected()
          }
        }
    
        fun setupPlatform() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  3. native-image-tests/src/main/kotlin/okhttp3/DotListener.kt

      ) {
        if (!testIdentifier.isContainer) {
          when (testExecutionResult.status!!) {
            TestExecutionResult.Status.ABORTED -> printStatus("-")
            TestExecutionResult.Status.FAILED -> printStatus("F")
            TestExecutionResult.Status.SUCCESSFUL -> printStatus(".")
          }
        }
      }
    
      override fun testPlanExecutionFinished(testPlan: TestPlan) {
        originalSystemErr?.println()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          } catch (_: InterruptedException) {
            Thread.currentThread().interrupt() // Retain interrupted status.
          }
        }
    
        check(::publicSuffixListBytes.isInitialized) {
          // May have failed with an IOException
          "Unable to load $PUBLIC_SUFFIX_RESOURCE resource from the classpath."
        }
    
        // Break apart the domain into UTF-8 labels, i.e. foo.bar.com turns into [foo, bar, com].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          try {
            logger.fine("$this starting to accept connections")
            acceptConnections()
          } catch (e: Throwable) {
            logger.log(Level.WARNING, "$this failed unexpectedly", e)
          }
    
          // Release all sockets and all threads, even if any close fails.
          serverSocket?.closeQuietly()
    
          val openClientSocket = openClientSockets.iterator()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
    
        if (mostRecentTrimFailed || mostRecentRebuildFailed) {
          // The OS has become our enemy! If the trim job failed, it means we are storing more data than
          // requested by the user. Do not allow edits so we do not go over that limit any further. If
          // the journal rebuild failed, the journal writer will not be active, meaning we will not be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          call: Call,
          handshake: Handshake?,
        ) {
          logger.removeHandler(loggerHandler)
        }
    
        override fun callEnd(call: Call) {
          // Cleanup log handler if failed.
          logger.removeHandler(loggerHandler)
        }
    
        override fun connectionAcquired(
          call: Call,
          connection: Connection,
        ) {
          if (random != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     * your application's HTTP calls.
     *
     * All start/connect/acquire events will eventually receive a matching end/release event, either
     * successful (non-null parameters), or failed (non-null throwable). The first common parameters of
     * each event pair are used to link the event in case of concurrent or repeated events e.g.
     * `dnsStart(call, domainName)` → `dnsEnd(call, domainName, inetAddressList)`.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        )
    
        taskFaker.advanceUntil(510.ms)
        assertEvents(
          "plan 0 TCP connect failed",
        )
    
        taskFaker.advanceUntil(520.ms)
        assertEvents(
          "plan 1 TCP connect failed",
        )
    
        taskFaker.advanceUntil(530.ms)
        assertEvents(
          "plan 2 TCP connect failed",
          "take plan 3",
          "plan 3 TCP connecting...",
        )
    
        taskFaker.advanceUntil(780.ms)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt

            .build()
        try {
          client1.newCall(request).execute().use { response ->
            println("Response 1 succeeded: $response")
          }
        } catch (e: IOException) {
          println("Response 1 failed: $e")
        }
    
        // Copy to customize OkHttp for this request.
        val client2 =
          client.newBuilder()
            .readTimeout(3000, TimeUnit.MILLISECONDS)
            .build()
        try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top