Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 19700101 (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt

        // Ignore trailing junk
        assertThat("Thu, 01 Jan 1970 00:00:00 GMT JUNK".toHttpDateOrNull()!!.time).isEqualTo(0L)
        // Missing timezones treated as bad.
        assertThat("Thu, 01 Jan 1970 00:00:00".toHttpDateOrNull()).isNull()
        // Missing seconds treated as bad.
        assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull()
        // Extra spaces treated as bad.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun responseCookies() {
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "Set-Cookie",
                "a=b; Expires=Thu, 01 Jan 1970 00:00:00 GMT",
                "Set-Cookie",
                "c=d; Expires=Fri, 02 Jan 1970 23:59:59 GMT; path=/bar; secure",
              ),
          ),
        )
        val cookieJar = RecordingCookieJar()
        client =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(
          parseCookie(
            0L,
            url,
            "a=b; " +
              "Expires=Thu, 01 Jan 1970 00:00:02 GMT; " +
              "Expires=Thu, 01 Jan 1970 00:00:04 GMT; " +
              "Expires=Thu, 01 Jan 1970 00:00:01 GMT; " +
              "Expires=Thu, 01 Jan 1970 00:00:03 GMT",
          )!!.expiresAt,
        ).isEqualTo(3000L)
      }
    
      @Test fun maxAgeOrExpiresMakesCookiePersistent() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(Date(0L))
      }
    
      @Test fun addInstant() {
        val expected = Instant.ofEpochMilli(0L)
        val headers =
          Headers.Builder()
            .add("Test-Instant", expected)
            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/HeadersKotlinTest.kt

        builder["g"] = Instant.EPOCH
        assertThat(builder["a"]).isEqualTo("b")
        assertThat(builder["c"]).isEqualTo("d")
        assertThat(builder["e"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
        assertThat(builder["g"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Dec 21 01:54:49 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top