Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for customTrailersDoNotUseResponseBody (0.15 seconds)

  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)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 18.8K bytes
    - Click Count (0)
Back to Top