- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 355 for bodies (0.13 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
val mockResponse = MockResponse .Builder() .doNotReadRequestBody() .trailers(headersOf("caboose", "xyz")) // Trailers always work for HTTP/2, but only for chunked bodies in HTTP/1. if (http2) { mockResponse.body("abc") } else { mockResponse.chunkedBody("abc", 1) } server.enqueue(mockResponse.build()) val call =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
sink.writeUtf8("def") } catch (e: InterruptedException) { throw InterruptedIOException() } } } companion object { /** A large response body. Smaller bodies might successfully read after the socket is closed! */ private val BIG_ENOUGH_BODY = repeat('a', 64 * 1024) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 10.6K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* Content-Type: plain/text * Content-Length: 6 * <-- END HTTP * ``` */ HEADERS, /** * Logs request and response lines and their respective headers and bodies (if present). * * Example: * ``` * --> POST /greeting http/1.1 * Host: example.com * Content-Type: plain/text * Content-Length: 3 * * Hi?
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
} /** * Regression test for an edge case where closing response body in the HTTP engine doesn't release * the corresponding stream allocation. This test keeps those response bodies alive and reads * them after the redirect has completed. This forces a connection to not be reused where it would * be otherwise. * * * This test leaks a response body by not closing it. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 12.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* request body start and end events occur within the response header events. Similarly, * [duplex calls][RequestBody.isDuplex] interleave the request and response bodies. * * Since connections may be reused, the proxy selection, DNS, and connect events may not be present * for a call. In future releases of OkHttp these events may also occur concurrently to permit
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/CrudTestBase.java
count += 1; } } @AfterAll protected static void tearDownAll() { deleteTestToken(); } // ================ // Bodies // ================ protected void testCreate() { logger.info("[BEGIN] testCreate"); // Test: create setting api. for (int i = 0; i < NUM; i++) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 9.2K bytes - Viewed (0) -
docs/features/interceptors.md
st)` is a critical part of each interceptor’s implementation. This simple-looking method is where all the HTTP work happens, producing a response to satisfy the request. If `chain.proceed(request)` is being called more than once previous response bodies must be closed. Interceptors can be chained. Suppose you have both a compressing interceptor and a checksumming interceptor: you'll need to decide whether data is compressed and then checksummed, or checksummed and then compressed. OkHttp...
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 8.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
) val latch = CountDownLatch(2) val errors = ArrayList<IOException?>() val bodies: BlockingQueue<String?> = LinkedBlockingQueue() val callback: Callback = object : Callback { override fun onResponse( call: Call, response: Response, ) { bodies.add(response.body.string()) latch.countDown() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
* registry suffix is one under which Internet users can directly register names via a domain name * registrar, and have such registrations lawfully protected by internet-governing bodies such as * ICANN. Examples of registry suffixes include {@code com}, {@code co.uk}, and {@code * pvt.k12.wy.us}. Examples of domain names that are <i>not</i> registry suffixes include {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
val secondResponse = callback.await(request.url).assertSuccessful() val bodies: MutableSet<String?> = LinkedHashSet() bodies.add(firstResponse.body) bodies.add(secondResponse.body) assertThat(bodies).contains("abc") assertThat(bodies).contains("def") } @Test fun get_Async() { server.enqueue( MockResponse(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)