Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readUtf8 (0.06 sec)

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

        assertThat(recordedRequest1.method).isEqualTo("POST")
        assertThat(recordedRequest1.body.readUtf8()).isEqualTo(body)
        assertThat(recordedRequest1.headers["Authorization"]).isNull()
        val recordedRequest2 = server.takeRequest()
        assertThat(recordedRequest2.method).isEqualTo("POST")
        assertThat(recordedRequest2.body.readUtf8()).isEqualTo(body)
        assertThat(recordedRequest2.headers["Authorization"]).isEqualTo(credential)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(recordedRequest1.method).isEqualTo("POST")
        assertThat(recordedRequest1.body.readUtf8()).isEqualTo(body)
        assertThat(recordedRequest1.headers["Authorization"]).isNull()
        val recordedRequest2 = server.takeRequest()
        assertThat(recordedRequest2.method).isEqualTo("POST")
        assertThat(recordedRequest2.body.readUtf8()).isEqualTo(body)
        assertThat(recordedRequest2.headers["Authorization"]).isEqualTo(credential)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        val response1 = client.newCall(request).execute()
        val in1 = response1.body.source()
        assertThat(in1.readUtf8("I love ".length.toLong())).isEqualTo("I love ")
        in1.skip("puppies but hate ".length.toLong())
        assertThat(in1.readUtf8("spiders".length.toLong())).isEqualTo("spiders")
        assertThat(in1.exhausted()).isTrue()
        in1.close()
        assertThat(cache.writeSuccessCount()).isEqualTo(1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top