- Sort Score
- Result 10 results
- Languages All
Results 961 - 970 of 1,560 for respond (0.53 sec)
-
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
.build(); Request request = new Request.Builder() .url("http://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { System.out.println(response.body().string()); } server.shutdown(); socketFile.delete(); } public static void main(String... args) throws Exception {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Dec 24 03:46:30 UTC 2018 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/WebApiResponse.java
import jakarta.servlet.http.HttpServletResponseWrapper; public class WebApiResponse extends HttpServletResponseWrapper { public WebApiResponse(final HttpServletResponse response) { super(response); } @Override public PrintWriter getWriter() throws IOException { // dummy stream return new PrintWriter(new ByteArrayOutputStream()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.2K bytes - Viewed (0) -
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
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/OsddHelper.java
import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.Constants; import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.util.ComponentUtil; import org.lastaflute.web.response.StreamResponse; import org.lastaflute.web.util.LaServletContextUtil; import jakarta.annotation.PostConstruct; /** * Helper class for Open Search Description Document. * * @author shinsuke * */
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/PluginHelper.java
try (final CurlResponse response = createCurlRequest(url).execute()) { if (response.getHttpStatusCode() != 200) { throw new PluginException("HTTP Status " + response.getHttpStatusCode() + " : failed to get the artifact from " + url); } try (final InputStream in = response.getContentAsStream()) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Oct 24 01:47:10 UTC 2024 - 17.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
.url("https://api.imgur.com/3/image") .post(requestBody) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { /** * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
README.md
Suggester suggester = Suggester.builder().build(client, suggestId); ``` ### Suggest ```java SuggestResponse response = suggester.suggest().setQuery("kensaku").execute().getResponse(); ``` ### Suggest async ``` suggester.suggest().setQuery("kensaku").execute() .done( response -> {} ).error( t -> {} ); ``` ### Add suggest document ```java
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Jan 19 03:33:49 UTC 2023 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
) .throttleBody(64 * 1024, 125, MILLISECONDS) // 500 Kbps .build(), ) val call = client.newCall(Request(server.url("/"))) val response = call.execute() cancelLater(call, 500) val responseBody = response.body.byteStream() val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } }.also { expected ->
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.9K bytes - Viewed (0) -
docs/de/docs/deployment/https.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 13.6K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt
).setHeader("content-type", "text/event-stream") .build(), ) val request = Request.Builder() .url(server.url("/")) .build() val response = client.newCall(request).execute() processResponse(response, listener) listener.assertOpen() listener.assertEvent(null, null, "hey") listener.assertClose() } @Test fun cancelShortCircuits() { server.enqueue(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 2.6K bytes - Viewed (0)