Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Kate (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

        "EEE MMM d yyyy HH:mm:ss z",
      )
    
    private val BROWSER_COMPATIBLE_DATE_FORMATS =
      arrayOfNulls<DateFormat>(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size)
    
    /** Returns the date for this string, or null if the value couldn't be parsed. */
    fun String.toHttpDateOrNull(): Date? {
      if (isEmpty()) return null
    
      val position = ParsePosition(0)
      var result = STANDARD_DATE_FORMAT.get().parse(this, position)
      if (position.index == length) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

      /**
       * Close connection after reading the request but before writing the response. Use this to
       * simulate late connection pool failures.
       */
      object DisconnectAfterRequest : SocketPolicy
    
      /**
       * Half close connection (InputStream for client) after reading the request but before
       * writing the response. Use this to simulate late connection pool failures.
       */
      object HalfCloseAfterRequest : SocketPolicy
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. regression-test/README.md

    ...
    BUILD SUCCESSFUL in 1m 30s
    63 actionable tasks: 61 executed, 2 up-to-date
    
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? {
        return formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta)))
      }
    
      private fun formatDate(date: Date): String? {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  5. docs/changelogs/changelog_1x.md

     * Fix: Persist proper `Content-Encoding` header to cache for GZip responses.
     * Fix: Eliminate rare race condition in SPDY streams that would prevent connection reuse.
     * Fix: Change HTTP date formats to UTC to conform to RFC2616 section 3.3.
     * Fix: Support SPDY header blocks with trailing bytes.
     * Fix: Allow `;` as separator for `Cache-Control` header.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

            .byteCount(),
        ).isEqualTo(20L)
      }
    
      @Test fun addDate() {
        val expected = Date(0L)
        val headers =
          Headers.Builder()
            .add("testDate", expected)
            .build()
        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)
    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)
  7. okhttp/src/test/java/okhttp3/HeadersKotlinTest.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import java.time.Instant
    import java.util.Date
    import okhttp3.Headers.Companion.headersOf
    import org.junit.jupiter.api.Test
    
    class HeadersKotlinTest {
      @Test fun getOperator() {
        val headers = headersOf("a", "b", "c", "d")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Dec 21 01:54:49 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. README.md

    OkHttp depends on [Okio][okio] for high-performance I/O and the [Kotlin standard library][kotlin]. Both are small libraries with strong backward-compatibility.
    
    We highly recommend you keep OkHttp up-to-date. As with auto-updating web browsers, staying current
    with HTTPS clients is an important defense against potential security problems. [We
    track][tls_history] the dynamic TLS ecosystem and adjust OkHttp to improve connectivity and
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RecordedResponse.kt

    import assertk.assertions.isFalse
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.text.SimpleDateFormat
    import java.util.Date
    
    /**
     * A received response or failure recorded by the response recorder.
     */
    class RecordedResponse(
      @JvmField val request: Request,
      val response: Response?,
      val webSocket: WebSocket?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. android-test/README.md

    ...
    BUILD SUCCESSFUL in 1m 30s
    63 actionable tasks: 61 executed, 2 up-to-date
    
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top