Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for customTrailersDoNotUseResponseBody (0.1 sec)

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

      /**
       * We had a bug where a custom `ResponseBody` interacted poorly with `Response.trailers()`.
       * Confirm custom trailers can be read without even accessing the response body.
       */
      @Test
      fun customTrailersDoNotUseResponseBody() {
        val response =
          Response
            .Builder()
            .request(Request(url = "https://example.com".toHttpUrl()))
            .protocol(Protocol.HTTP_1_1)
            .code(200)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top