- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for peekTrailers (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
assertThat(response.trailers()).isEqualTo(headersOf("t1", "v1")) } @Test fun peekTrailersHttp1() { peekTrailers(Protocol.HTTP_1_1) } @Test fun peekTrailersHttp2() { peekTrailers(Protocol.HTTP_2) } private fun peekTrailers(protocol: Protocol) { val responseBody = "a".repeat(OKHTTP_CLIENT_WINDOW_SIZE) enableProtocol(protocol) server.enqueue(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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
newFixedLengthSource(response.request.url, contentLength) } else { newUnknownLengthSource(response.request.url) } } } override fun peekTrailers(): Headers? { if (trailers === TRAILERS_RESPONSE_BODY_TRUNCATED) { throw IOException("Trailers cannot be read because the response body was truncated") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
okhttp/api/jvm/okhttp.api
public final fun networkResponse ()Lokhttp3/Response; public final fun newBuilder ()Lokhttp3/Response$Builder; public final fun peekBody (J)Lokhttp3/ResponseBody; public final fun peekTrailers ()Lokhttp3/Headers; public final fun priorResponse ()Lokhttp3/Response; public final fun protocol ()Lokhttp3/Protocol; public final fun receivedResponseAtMillis ()J public final fun request ()Lokhttp3/Request;
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0) -
okhttp/api/android/okhttp.api
public final fun networkResponse ()Lokhttp3/Response; public final fun newBuilder ()Lokhttp3/Response$Builder; public final fun peekBody (J)Lokhttp3/ResponseBody; public final fun peekTrailers ()Lokhttp3/Headers; public final fun priorResponse ()Lokhttp3/Response; public final fun protocol ()Lokhttp3/Protocol; public final fun receivedResponseAtMillis ()J public final fun request ()Lokhttp3/Request;
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0)