Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for secondi (0.33 sec)

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

            .connectTimeout(5, TimeUnit.SECONDS)
            .writeTimeout(5, TimeUnit.SECONDS)
            .readTimeout(5, TimeUnit.SECONDS)
            .callTimeout(10, TimeUnit.SECONDS)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Sep 28 18:00:26 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt

        OkHttpClient
          .Builder()
          .connectTimeout(5, TimeUnit.SECONDS)
          .writeTimeout(5, TimeUnit.SECONDS)
          .readTimeout(5, TimeUnit.SECONDS)
          .callTimeout(10, TimeUnit.SECONDS)
          .build()
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        final long startNanos = System.nanoTime();
        final Call call = client.newCall(request);
    
        // Schedule a job to cancel the call in 1 second.
        executor.schedule(() -> {
          System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f);
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

      fun run() {
        val request =
          Request
            .Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build()
    
        val startNanos = System.nanoTime()
        val call = client.newCall(request)
    
        // Schedule a job to cancel the call in 1 second.
        executor.schedule({
          System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f)
          call.cancel()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

            while (e != null) {
              println(e)
              e = e.cause
            }
          }
        }
        println()
      }
      time = System.currentTimeMillis() - time
      println("Time: ${time.toDouble() / 1000} seconds\n")
    }
    
    fun main() {
      Security.insertProviderAt(OpenSSLProvider(), 1)
      var bootstrapClient = OkHttpClient()
      var names = listOf("google.com", "graph.facebook.com", "sdflkhfsdlkjdf.ee")
      try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            assertEquals(2, callbackResults.size());
            assertEquals("integration test", callbackResults.get(0));
            assertEquals("second line", callbackResults.get(1));
    
            String output = thread.getOutput();
            assertTrue(output.contains("integration test"));
            assertTrue(output.contains("second line"));
        }
    
        public void test_defaultBufferSizeConstant() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/Tuple3.java

            this.value1 = value1;
        }
    
        /**
         * Returns the second value.
         *
         * @return The second value
         */
        public T2 getValue2() {
            return value2;
        }
    
        /**
         * Sets the second value.
         *
         * @param value2
         *            The second value
         */
        public void setValue2(final T2 value2) {
            this.value2 = value2;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      ).help(
        "Maximum time allowed for connection (seconds)",
      ).int()
        .default(DEFAULT_TIMEOUT)
    
      val readTimeout: Int by option("--read-timeout")
        .help("Maximum time allowed for reading data (seconds)")
        .int()
        .default(DEFAULT_TIMEOUT)
    
      val callTimeout: Int by option(
        "--call-timeout",
      ).help(
        "Maximum time allowed for the entire call (seconds)",
      ).int()
        .default(DEFAULT_TIMEOUT)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/Pair.java

        }
    
        /**
         * Returns the second value.
         *
         * @return The second value
         */
        public T2 getSecond() {
            return second;
        }
    
        /**
         * Sets the second value.
         *
         * @param second
         *            The second value
         */
        public void setSecond(final T2 second) {
            this.second = second;
        }
    
        @Override
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt

      fun completeBuilder() {
        val cacheControl =
          CacheControl
            .Builder()
            .noCache()
            .noStore()
            .maxAge(1, TimeUnit.SECONDS)
            .maxStale(2, TimeUnit.SECONDS)
            .minFresh(3, TimeUnit.SECONDS)
            .onlyIfCached()
            .noTransform()
            .immutable()
            .build()
        assertThat(cacheControl.toString()).isEqualTo(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top