Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for chunkedBody (0.07 sec)

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

      fun responseHeaders() {
        server.enqueue(
          MockResponse.Builder()
            .status("HTTP/1.0 200 Fantastic")
            .addHeader("A: c")
            .addHeader("B: d")
            .addHeader("A: e")
            .chunkedBody("ABCDE\nFGHIJ\nKLMNO\nPQR", 8)
            .build(),
        )
        val request = newRequest("/")
        val response = getResponse(request)
        assertThat(response.code).isEqualTo(200)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

      internal enum class TransferKind {
        CHUNKED {
          override fun setBody(
            response: MockResponse.Builder,
            content: Buffer,
            chunkSize: Int,
          ) {
            response.chunkedBody(content, chunkSize)
          }
        },
        FIXED_LENGTH {
          override fun setBody(
            response: MockResponse.Builder,
            content: Buffer,
            chunkSize: Int,
          ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("h1", "v1")
            .addHeader("h2", "v2")
            .chunkedBody("HelloBonjour", 1024)
            .trailers(headersOf("trailers", "boom"))
            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top