Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Insert (0.17 sec)

  1. docs/changelogs/changelog_4x.md

     *  Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
        between Kotlin's `assert()` and Java's `assert()`. (Kotlin always evaluates the argument; Java
        only does when assertions are enabled.)
    
     *  Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.
    
    
    ## Version 4.2.2
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

     * There is no benefit to invoking multiple `close()` methods for the same response body.
     *
     * For synchronous calls, the easiest way to make sure a response body is closed is with a `try`
     * block. With this structure the compiler inserts an implicit `finally` clause that calls
     * [close()][Response.close] for you.
     *
     * ```java
     * Call call = client.newCall(request);
     * try (Response response = call.execute()) {
     * ... // Use the response.
     * }
    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 (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         * @param streamId stream which has a priority change.
         * @param streamDependency the stream ID this stream is dependent on.
         * @param weight relative proportion of priority in `[1..256]`.
         * @param exclusive inserts this stream ID as the sole child of `streamDependency`.
         */
        fun priority(
          streamId: Int,
          streamDependency: Int,
          weight: Int,
          exclusive: Boolean,
        )
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          }
        }
    
        /**
         * Returns the index of the next date character in `input`, or if `invert` the index
         * of the next non-date character in `input`.
         */
        private fun dateCharacterOffset(
          input: String,
          pos: Int,
          limit: Int,
          invert: Boolean,
        ): Int {
          for (i in pos until limit) {
            val c = input[i].code
            val dateCharacter = (
    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)
  5. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(cookie.domain).isEqualTo("example.com")
        assertThat(cookie.path).isEqualTo("/")
        assertThat(cookie.secure).isFalse()
        assertThat(cookie.httpOnly).isFalse()
        // can't be unset
        assertThat(cookie.persistent).isTrue()
        assertThat(cookie.hostOnly).isFalse()
      }
    
      @Test fun builderNameValidation() {
        assertFailsWith<IllegalArgumentException> {
          Cookie.Builder().name(" a ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

        // In practice, wildcards are always in the leftmost position. For now, this implementation
        // cheats and does not attempt every possible permutation. Instead, it only considers wildcards
        // in the leftmost position. We assert this fact when we generate the public suffix file. If
        // this assertion ever fails we'll need to refactor this implementation.
        var wildcardMatch: String? = null
        if (domainLabelsUtf8Bytes.size > 1) {
    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)
Back to top