Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for customTrailersDoNotUseResponseBody (1.47 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 18K bytes
    - Viewed (0)
Back to top