Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for 64 (0.23 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf()
      private val requestedHosts: MutableList<String> = mutableListOf()
      private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.
    
      /** Sets the results for `hostname`.  */
      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
        hostAddresses[hostname] = addresses
        return this
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt

            "protocol=$requestingProtocol scheme=$requestingScheme",
        )
        return authentication
      }
    
      companion object {
        /** base64("username:password")  */
        const val BASE_64_CREDENTIALS = "dXNlcm5hbWU6cGFzc3dvcmQ="
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

                for (i in 0 until n) {
                  sink.writeByte('x'.code)
                }
              } else {
                val buf = ByteArray(if (writeKind == WriteKind.SMALL_BUFFERS) 256 else 64 * 1024)
                Arrays.fill(buf, 'x'.code.toByte())
                var i = 0
                while (i < n) {
                  sink.write(buf, 0, Math.min(buf.size, n - i))
                  i += buf.size
                }
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

          if (!other.isSet(i)) continue
          set(i, other[i])
        }
      }
    
      companion object {
        /**
         * From the HTTP/2 specs, the default initial window size for all streams is 64 KiB. (Chrome 25
         * uses 10 MiB).
         */
        const val DEFAULT_INITIAL_WINDOW_SIZE = 65535
    
        /** HTTP/2: Size in bytes of the table used to decode the sender's header blocks. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

        append("-----END CERTIFICATE-----\n")
      }
    }
    
    internal fun StringBuilder.encodeBase64Lines(data: ByteString) {
      val base64 = data.base64()
      for (i in 0 until base64.length step 64) {
        append(base64, i, minOf(i + 64, base64.length)).append('\n')
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (2)
  6. okhttp-testing-support/build.gradle.kts

      implementation(libs.bouncycastle.bcpkix)
      implementation(libs.bouncycastle.bctls)
      api(libs.conscrypt.openjdk)
      api(libs.openjsse)
    
      api(variantOf(libs.amazonCorretto) {
        classifier("linux-x86_64")
      })
    
      api(libs.hamcrestLibrary)
      api(libs.junit.jupiter.api)
      api(libs.junit.jupiter.params)
    
      api(libs.junit.pioneer)
    
      compileOnly(libs.findbugs.jsr305)
      compileOnly(libs.robolectric.android)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 750 bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

            .protocol(HTTP_2)
            .message("Unauthorized")
            .build()
        val authRequest = authenticator.authenticate(route, response)
    
        assertEquals(
          "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}",
          authRequest!!.header("Authorization"),
        )
      }
    
      @Test
      fun noSupportForNonBasicAuth() {
        val request =
          Request.Builder()
            .url("https://server/robots.txt")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  8. docs/features/calls.md

    latency.
    
    For asynchronous calls, [`Dispatcher`](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-dispatcher/) implements policy for maximum simultaneous requests. You can set maximums per-webserver (default is 5), and overall (default is 64)....
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

            }
          }
        }
      }
    
      companion object {
        /** A large response body. Smaller bodies might successfully read after the socket is closed!  */
        private val BIG_ENOUGH_BODY = repeat('a', 64 * 1024)
      }
    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)
  10. okhttp/src/test/java/okhttp3/FormBodyTest.kt

        assertThat(formEncode(60)).isEqualTo("%3C")
        assertThat(formEncode(61)).isEqualTo("%3D")
        assertThat(formEncode(62)).isEqualTo("%3E")
        assertThat(formEncode(63)).isEqualTo("%3F")
        assertThat(formEncode(64)).isEqualTo("%40")
        assertThat(formEncode(65)).isEqualTo("A")
        assertThat(formEncode(90)).isEqualTo("Z")
        assertThat(formEncode(91)).isEqualTo("%5B")
        assertThat(formEncode(92)).isEqualTo("%5C")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top