- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,862 for respond (0.04 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/TrailersSource.kt
/** * Returns the trailers that follow an HTTP response, blocking if they aren't ready yet. * Implementations of this interface should respond to [Call.cancel] by immediately throwing an * [IOException]. * * Most callers won't need this interface, and should use [Response.trailers] instead. * * This interface is for test and production code that creates [Response] instances without making * an HTTP call to a remote server. */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 1.4K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt
request() .withPath("/person") .withQueryStringParameter("name", "peter"), ).respond(response().withBody("Peter the person!")) val response = client.newCall(Request((mockServer.endpoint + "/person?name=peter").toHttpUrl())).execute() assertThat(response.body.string()).contains("Peter the person") } } @Test fun testHttpsRequest() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt
* to limit the retries by the class of errors and number of attempts. To get the number of * attempts to the current point use this function. * * ```java * private int responseCount(Response response) { * int result = 1; * while ((response = response.priorResponse()) != null) { * result++; * } * return result; * } * ``` * * [1]: https://tools.ietf.org/html/rfc2817 */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 7.2K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt
.withPath("/person") .withQueryStringParameter("name", "peter"), ).respond(response().withBody("Peter the person!")) val client = OkHttpClient .Builder() .proxy(Proxy(SOCKS, InetSocketAddress(socks5Proxy.host, socks5Proxy.firstMappedPort))) .build() val response = client .newCall(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.6K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
fun testOkHttpDirect() { testRequest { val client = OkHttpClient() val response = client .newCall( Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()), ).execute() assertThat(response.body.string()).contains("Peter the person") assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_1) } } @Test fun testOkHttpProxied() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.2K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
* Protocol negotiation is only attempted for HTTPS URLs. * * [Protocol.HTTP_1_0] is not supported in this set. Requests are initiated with `HTTP/1.1`. If * the server responds with `HTTP/1.0`, that will be exposed by [Response.protocol]. * * [alpn]: http://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg * [rfc_2616]: http://www.w3.org/Protocols/rfc2616/rfc2616.htmlCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 51.5K bytes - Click Count (0) -
AI_POLICY.md
2. **Thoughtful, honest feedback.** We will consider every contribution on its merits, regardless of whether AI was used. We may not respond quickly—our review queue is long—but we will tell you clearly what works, what needs to change, and why.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 27 18:43:39 GMT 2026 - 3.1K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
private fun writeHttpResponse( socket: MockWebServerSocket, response: MockResponse, ) { socket.sleepWhileOpen(response.headersDelayNanos) socket.sink.writeUtf8(response.status) socket.sink.writeUtf8("\r\n") writeHeaders(socket.sink, response.headers) if (response.socketHandler != null) { response.socketHandler.handle(socket) return }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 40.3K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
.withQueryStringParameter("name", "peter"), ).respond(response().withBody("Peter the person!")) val results = (1..20).map { executor.submit { val response = client.newCall(Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl())).execute() val body = response.body.string() assertThat(body).contains("Peter the person")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (1)