Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for 1000 (0.32 sec)

  1. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        val expected = Date(1000)
        val headers =
          Headers.Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

          // a test timeout failure.
          val waitTime = (entryTime + 1_000_000_000L - System.nanoTime())
          if (!queue.idleLatch().await(waitTime, TimeUnit.NANOSECONDS)) {
            TaskRunner.INSTANCE.lock.withLock {
              TaskRunner.INSTANCE.cancelAll()
            }
            fail<Unit>("Queue still active after 1000 ms")
          }
        }
      }
    
      override fun beforeEach(context: ExtensionContext) {
    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)
  3. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          if (deltaSeconds == Long.MIN_VALUE) {
            expiresAt = Long.MIN_VALUE
          } else if (deltaSeconds != -1L) {
            val deltaMilliseconds =
              if (deltaSeconds <= Long.MAX_VALUE / 1000) {
                deltaSeconds * 1000
              } else {
                Long.MAX_VALUE
              }
            expiresAt = currentTimeMillis + deltaMilliseconds
            if (expiresAt < currentTimeMillis || expiresAt > MAX_DATE) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * public final OkHttpClient client = new OkHttpClient.Builder()
     *     .readTimeout(1000, TimeUnit.MILLISECONDS)
     *     .writeTimeout(1000, TimeUnit.MILLISECONDS)
     *     .build();
     * ```
     *
     * This example shows a call with a short 500 millisecond read timeout and a 1000 millisecond
     * write timeout. Original configuration is kept, but can be overriden.
     *
     * ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

         * the server doesn't respond the web socket will be canceled.
         */
        const val CANCEL_AFTER_CLOSE_MILLIS = 60L * 1000
    
        /**
         * The smallest message that will be compressed. We use 1024 because smaller messages already
         * fit comfortably within a single ethernet packet (1500 bytes) even with framing overhead.
         *
         * For tests this must be big enough to realize real compression on test messages like
    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)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        setUp(protocol, mockWebServer)
        client =
          client.newBuilder()
            .readTimeout(Duration.ofMillis(500))
            .build()
        server.enqueue(
          MockResponse.Builder()
            .bodyDelay(1000, TimeUnit.MILLISECONDS)
            .body("a")
            .build(),
        )
        server.enqueue(MockResponse(body = "b"))
        server.enqueue(MockResponse(body = "c"))
    
        // The first call times out.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.A.1.txt

       FE47-FE48
       FE53
       FE67
       FE6C-FE6F
       FE75
       FEFD-FEFE
       FF00
       FFBF-FFC1
       FFC8-FFC9
       FFD0-FFD1
       FFD8-FFD9
       FFDD-FFDF
       FFE7
       FFEF-FFF8
       10000-102FF
       1031F
       10324-1032F
       1034B-103FF
       10426-10427
       1044E-1CFFF
       1D0F6-1D0FF
       1D127-1D129
       1D1DE-1D3FF
       1D455
       1D49D
       1D4A0-1D4A1
       1D4A3-1D4A4
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. docs/contribute/debug_logging.md

    ```
    [2020-01-01 00:00:00] >> CONNECTION 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
    [2020-01-01 00:00:00] >> 0x00000000     6 SETTINGS
    [2020-01-01 00:00:00] >> 0x00000000     4 WINDOW_UPDATE
    [2020-01-01 00:00:00] >> 0x00000003    47 HEADERS       END_STREAM|END_HEADERS
    [2020-01-01 00:00:00] << 0x00000000     6 SETTINGS
    [2020-01-01 00:00:00] << 0x00000000     0 SETTINGS      ACK
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  9. gradle/wrapper/gradle-wrapper.properties

    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
    networkTimeout=10000
    validateDistributionUrl=true
    zipStoreBase=GRADLE_USER_HOME
    Properties
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 250 bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Content-Range: bytes 1000-1001/2000")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .body("BB")
            .build(),
        )
        val url = server.url("/")
        val request =
          Request.Builder()
            .url(url)
            .header("Range", "bytes=1000-1001")
            .build()
        val range = client.newCall(request).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top