Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stringWithDefaultCharsetAdded (0.08 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("616263")
        assertThat(bodyToHex(body), "Retransmit body").isEqualTo("616263")
      }
    
      @Test
      fun stringWithDefaultCharsetAdded() {
        val contentType = "text/plain".toMediaType()
        val body = "\u0800".toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo("text/plain; charset=utf-8".toMediaType())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top