Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Rascia (0.17 sec)

  1. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

        val headers =
          Headers.Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\", charset=\"US-ASCII\"")
            .build()
        val expectedAuthParams = mutableMapOf<String?, String>()
        expectedAuthParams["realm"] = "protected area"
        expectedAuthParams["charset"] = "US-ASCII"
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(listOf(Challenge("Basic", expectedAuthParams)))
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    /**
     * An [RFC 3492] punycode decoder for converting ASCII to Unicode domain name labels. This is
     * intended for use in Internationalized Domain Names (IDNs).
     *
     * This class contains a Kotlin implementation of the pseudocode specified by RFC 3492. It includes
    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. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

     * example this converts `☃.net` to `xn--n3h.net`, and `WwW.GoOgLe.cOm` to `www.google.com`.
     * `null` will be returned if the host cannot be ToASCII encoded or if the result contains
     * unsupported ASCII characters.
     */
    internal fun String.toCanonicalHost(): String? {
      val host: String = this
    
      // If the input contains a :, it’s an IPv6 address.
      if (":" in host) {
    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)
  4. docs/changelogs/changelog_4x.md

        encapsulation enabled.
     *  Fix: Strictly verify hostnames used with OkHttp's `HostnameVerifier`. Programs that make direct
        manual calls to `HostnameVerifier` could be defeated if the hostnames they pass in are not
        strictly ASCII. This issue is tracked as [CVE-2021-0341].
    
    
    ## Version 4.9.1
    
    _2021-01-30_
    
     *  Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads
    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)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

    internal object DnsRecordCodec {
      private const val SERVFAIL = 2
      private const val NXDOMAIN = 3
      const val TYPE_A = 0x0001
      const val TYPE_AAAA = 0x001c
      private const val TYPE_PTR = 0x000c
      private val ASCII = Charsets.US_ASCII
    
      fun encodeQuery(
        host: String,
        type: Int,
      ): ByteString =
        Buffer().apply {
          writeShort(0) // query id
          writeShort(256) // flags with recursion
    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)
  6. okhttp/src/test/java/okhttp3/internal/idn/StringprepTest.kt

      }
    
      @Test fun prohibitionCharactersSpaces() {
        assertThat(stringPrep(" ")).isEqualTo(" ") // ASCII space not prohibited.
        assertThat(stringPrep("\u2003")).isNull() // EM SPACE
      }
    
      @Test fun prohibitionControlCharacters() {
        assertThat(stringPrep("\u007f")).isEqualTo("\u007f") // ASCII delete not prohibited.
        assertThat(stringPrep("\u0080")).isNull()
        assertThat(stringPrep("\u2029")).isNull()
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * Mappings may overlap.
     *
     * ASCII-Only
     * ==========
     *
     * Neither the section index nor the ranges data use bit 0x80 anywhere. That means the data is
     * strictly ASCII. This is intended to make it efficient to encode this data as a string, and to
     * index into it as a string.
     *
     * The mappings data contains non-ASCII characters.
     */
    internal class IdnaMappingTable internal constructor(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

     *
     *  * In queries, ' ' is encoded to '+' and '+' is encoded to "%2B".
     *
     *  * Characters in `encodeSet` are percent-encoded.
     *
     *  * Control characters and non-ASCII characters are percent-encoded.
     *
     *  * All other characters are copied without transformation.
     *
     * @param alreadyEncoded true to leave '%' as-is; false to convert it to '%25'.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        // Less than 16,384 chars, because we index on a 14-bit index in the ranges table.
        assertThat(compactTable.mappings.length).isLessThan(1 shl 14)
    
        // Confirm the data strings are ASCII.
        for (dataString in listOf<String>(compactTable.sections, compactTable.ranges)) {
          for (codePoint in dataString.codePoints()) {
            assertThat(codePoint and 0x7f).isEqualTo(codePoint)
          }
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        /** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */
        private const val UNICODE_4 = 0x1d11e
    
        /**
         * Returns a new instance configured with a default encode set for the ASCII range. The specific
         * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be
         * percent-encoded in a path.
         *
         * See https://url.spec.whatwg.org/#percent-encoded-bytes
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top