Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for inputs (0.28 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

          if (compress != -1) return null // Multiple "::" delimiters.
          i += 2
          b += 2
          compress = b
          if (i == limit) break
        } else if (b != 0) {
          // Group separator ":" delimiter.
          if (input.startsWith(":", startIndex = i)) {
            i++
          } else if (input.startsWith(".", startIndex = i)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        var delta = 0
        var bias = INITIAL_BIAS
        var h = b
        while (h < input.size) {
          val m = input.minBy { if (it >= n) it else Int.MAX_VALUE }
    
          val increment = (m - n) * (h + 1)
          if (delta > Int.MAX_VALUE - increment) return false // Prevent overflow.
          delta += increment
    
          n = m
    
          for (c in input) {
            if (c < n) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. mockwebserver/README.md

    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ```java
    MockResponse response = new MockResponse()
        .addHeader("Content-Type", "application/json; charset=utf-8")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  4. okhttp/build.gradle.kts

           - This is unfortunate, because actually it would be safe to declare
           the task as up-to-date, because these two files, which are based on
           the generated index.xml, are outputs, not inputs. We can be sure of
           this because they are deleted in the @BeforeEach method of the
           OsgiTest test class.
    
           - To enable the benefit of incremental builds, we can ask Gradle
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

          if (MappedRange.InlineDelta.MAX_VALUE >= abs(codePointDelta)) {
            return MappedRange.InlineDelta(mapping.rangeStart, codePointDelta)
          }
        }
      }
      return null
    }
    
    /**
     * Inputs must have applied [withoutSectionSpans].
     */
    internal fun sections(mappings: List<Mapping>): Map<Int, List<MappedRange>> {
      val result = mutableMapOf<Int, MutableList<MappedRange>>()
    
      for (mapping in mappings) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val request = server.takeRequest()
        assertThat(request.headers["Accept-Encoding"]).isEqualTo("custom")
      }
    
      /**
       * Test a bug where gzip input streams weren't exhausting the input stream, which corrupted the
       * request that followed or prevented connection reuse. http://code.google.com/p/android/issues/detail?id=7059
       * http://code.google.com/p/android/issues/detail?id=38817
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      /**
       * When callers use `addEncodedQueryParameter()` we only encode what's strictly required. We
       * retain the encoded (or non-encoded) state of the input.
       */
      @Test
      fun queryCharactersNotReencodedWhenComposedWithAddEncoded() {
        val url =
          HttpUrl.Builder()
            .scheme("http")
            .host("host")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

          call: RealCall,
          e: IOException?,
        )
    
        fun noNewExchanges()
    
        fun cancel()
      }
    
      companion object {
        /**
         * The timeout to use while discarding a stream of input data. Since this is used for connection
         * reuse, this timeout should be significantly less than the time it takes to establish a new
         * connection.
         */
        const val DISCARD_STREAM_TIMEOUT_MILLIS = 100
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

      }
    
      /**
       * We had a bug where self-finishing inflater streams would infinite loop!
       * https://github.com/square/okhttp/issues/8078
       */
      @Test fun `inflate returns finished before bytesRead reaches input length`() {
        val inflater = MessageInflater(false)
        val message = "53621260020000".decodeHex()
        assertThat(inflater.inflate(message)).isEqualTo("22021002".decodeHex())
      }
    
      @Test fun `deflate golden value`() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

          }
        }
      }
    
      private fun testHttpUrl(testData: WebPlatformUrlTestData) {
        val url =
          when (testData.base) {
            "about:blank" -> testData.input!!.toHttpUrlOrNull()
            else -> testData.base!!.toHttpUrl().resolve(testData.input!!)
          }
    
        if (testData.expectParseFailure()) {
          assertThat(url, "Expected URL to fail parsing").isNull()
          return
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top