Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for iso (0.14 sec)

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

        )
        assertEquals(
          "US-ASCII",
          noCharset.charset(Charsets.US_ASCII)!!.name(),
        )
        val charset = parse("text/plain; charset=iso-8859-1")
        assertEquals(
          "ISO-8859-1",
          charset.charset(Charsets.UTF_8)!!.name(),
        )
        assertEquals(
          "ISO-8859-1",
          charset.charset(Charsets.US_ASCII)!!.name(),
        )
      }
    
      @Test fun testTurkishDotlessIWithEnUs() {
    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)
  2. okhttp/src/main/kotlin/okhttp3/Credentials.kt

    package okhttp3
    
    import java.nio.charset.Charset
    import kotlin.text.Charsets.ISO_8859_1
    import okio.ByteString.Companion.encode
    
    /** Factory for HTTP authorization credentials. */
    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            code = 401,
            headers =
              headersOf(
                "WWW-Authenticate",
                "Basic realm=\"protected area\"",
              ),
            body = "Please authenticate with ISO-8859-1.",
          ),
        )
        server.enqueue(
          MockResponse(body = "Successful auth!"),
        )
        java.net.Authenticator.setDefault(
          RecordingAuthenticator(
    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/test/java/okhttp3/FormBodyTest.kt

        buffer.skip(3) // Skip "a=b" prefix.
        return buffer.readUtf8(buffer.size - 1) // Skip the "c" suffix.
      }
    
      @Test
      fun manualCharset() {
        val body =
          FormBody.Builder(StandardCharsets.ISO_8859_1)
            .add("name", "Nicolás")
            .build()
        val expected = "name=Nicol%E1s"
        assertThat(body.contentLength()).isEqualTo(expected.length.toLong())
        val out = Buffer()
        body.writeTo(out)
    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)
  5. okhttp/src/main/kotlin/okhttp3/Challenge.kt

     */
    package okhttp3
    
    import java.nio.charset.Charset
    import java.util.Collections.singletonMap
    import java.util.Collections.unmodifiableMap
    import java.util.Locale.US
    import kotlin.text.Charsets.ISO_8859_1
    import okhttp3.internal.commonEquals
    import okhttp3.internal.commonHashCode
    import okhttp3.internal.commonToString
    
    /**
     * An [RFC 7235][rfc_7235] challenge.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

        assertEquals("2", mediaType.parameter("B"))
        assertEquals("3", mediaType.parameter("C"))
      }
    
      @Test fun testCharsetAndQuoting() {
        val mediaType = parse("text/plain;a=\";charset=us-ascii\";charset=\"utf-8\";b=\"iso-8859-1\"")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      @Test fun testDuplicatedCharsets() {
        val mediaType = parse("text/plain; charset=utf-8; charset=UTF-8")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    // yt : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
    yt
    
    // IDN ccTLDs
    // When submitting patches, please maintain a sort by ISO 3166 ccTLD, then
    // U-label, and follow this format:
    // // A-Label ("<Latin renderings>", <language name>[, variant info]) : <ISO 3166 ccTLD>
    // // [sponsoring org]
    // U-Label
    
    // xn--mgbaam7a8h ("Emerat", Arabic) : AE
    // http://nic.ae/english/arabicdomain/rules.jsp
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top