- Sort Score
- Num 10 results
- Language All
Results 811 - 820 of 1,881 for RESPONSE (0.06 seconds)
-
README.md
```java OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } } ``` Post to a Server ---------------- This program posts data to a service. [Full source][post_example]. ```java
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 9.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/BatchRequestException.java
/** * Constructs a new BatchRequestException with the specified message and results. * * @param <REQ> The type of the request * @param <REP> The type of the response * @param message The error message describing the batch operation failure * @param allResults List of results from all attempted requests in the batch */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Feb 07 00:45:02 GMT 2025 - 2.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/login/LoginAction.java
import org.dbflute.optional.OptionalEntity; import org.dbflute.optional.OptionalThing; import org.lastaflute.web.Execute; import org.lastaflute.web.login.exception.LoginFailureException; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.validation.VaErrorHook; import jakarta.annotation.Resource; import jakarta.servlet.http.HttpSession; /** * The login action. */
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 06:18:24 GMT 2026 - 8.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/SearchListTests.java
checkPutMethod(requestBody, getItemEndpointSuffix()).then().body("response.status", equalTo(0)); refresh(); } checkUpdate(); } @Override protected List<Map<String, Object>> getItemList(final Map<String, Object> body) { final String response = checkMethodBase(body).get(getApiPath() + "/" + getListEndpointSuffix()).asString();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jun 12 02:18:38 GMT 2025 - 4.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherCleanupTest.kt
object : Callback { override fun onFailure( call: Call, e: IOException, ) {} override fun onResponse( call: Call, response: Response, ) { response.close() } } repeat(10_000) { okhttp.newCall(Request.Builder().url(server.url("/")).build()).enqueue(callback) } okhttp.dispatcher.executorService.shutdown()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 1.3K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/sni/SniOverrideTest.kt
.header("Host", "cloudflare-dns.com") .build() client.newCall(request).execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.protocol).isEqualTo(Protocol.HTTP_2) assertThat(response.body.string()).contains("h=cloudflare-dns.com") } } @Test fun getWithDns() { client = client
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 26 07:38:51 GMT 2026 - 3.6K bytes - Click Count (0) -
okhttp-logging-interceptor/README.md
Logging Interceptor =================== An [OkHttp interceptor][interceptors] which logs HTTP request and response data. ```java HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); logging.setLevel(Level.BASIC); OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(logging) .build(); ``` You can change the log level at any time by calling `setLevel()`.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 1.3K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
val call = client.newCall(networkRequest) call.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNull() } val cachedCall = client.newCall(request) cachedCall.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNotNull() } } @TestCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0) -
tests/test_openapi_cache_root_path.py
c = TestClient(app, root_path=prefix) c.get("/openapi.json") # A clean request should not have any of them clean_client = TestClient(app) response = clean_client.get("/openapi.json") data = response.json() servers = [s.get("url") for s in data.get("servers", [])] for prefix in ["/path-a", "/path-b", "/path-c"]: assert prefix not in servers, (
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 2.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java
try (CurlResponse response = ComponentUtil.getCurlHelper() // .put("/" + getIndexName() + "/_doc/" + instanceId + "?refresh=true") // .body(body) .execute()) { if (response.getHttpStatusCode() != 200 && response.getHttpStatusCode() != 201) { logger.warn("Failed to send heartbeat: status={}", response.getHttpStatusCode()); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 33.3K bytes - Click Count (0)