Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCharsetIsOneOfManyParameters (0.32 sec)

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

        assertEquals("!#$%&'*+-.{|}~", mediaType.type)
        assertEquals("!#$%&'*+-.{|}~", mediaType.subtype)
      }
    
      @Test fun testCharsetIsOneOfManyParameters() {
        val mediaType = parse("text/plain;a=1;b=2;charset=utf-8;c=3")
        assertEquals("text", mediaType.type)
        assertEquals("plain", mediaType.subtype)
        assertEquals("UTF-8", mediaType.charsetName())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top