Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ByteString (2.14 sec)

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

            .body(protocol, "Hello")
            .build(),
        )
    
        val call = client.newCall(Request(server.url("/")))
        call.execute().use { originalResponse ->
          val responseBodyData = originalResponse.body.byteString()
          val responseTrailers = originalResponse.trailers()
          assertThat(responseTrailers).isEqualTo(headersOf("t1", "v1"))
    
          val rewrittenResponse =
            originalResponse
              .newBuilder()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

    import okhttp3.WebSocketListener
    import okhttp3.logging.HttpLoggingInterceptor.Level
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.BufferedSink
    import okio.ByteString.Companion.decodeBase64
    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.Assumptions
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 39.4K bytes
    - Viewed (0)
  3. CHANGELOG.md

        and `version`. This better suits HTTP/2 where the request line had to be synthesized from
        component headers.
    
     *  Breaking: Change `RecordedRequest.body` from a mutable `Buffer` to an immutable `ByteString`.
    
     *  Breaking: Adopt Okio's new `Socket` interface for `MockResponse.socketHandler`.
    
    Note that any _Breaking_ changes above impact only APIs introduced in earlier 5.0.0-alpha releasees.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 05 16:02:59 UTC 2025
    - 36.2K bytes
    - Viewed (2)
Back to top