- Sort Score
- Num 10 results
- Language All
Results 681 - 690 of 2,544 for request (0.04 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/CancelCall.java
import okhttp3.Call; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class CancelCall { private final ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { Request request = new Request.Builder()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 2.1K bytes - Click Count (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].
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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
private var awaitingPong = false init { require("GET" == originalRequest.method) { "Request must be GET: ${originalRequest.method}" } this.key = ByteArray(16).apply { random.nextBytes(this) }.toByteString().base64() } override fun request(): Request = originalRequest @Synchronized override fun queueSize(): Long = queueSize override fun cancel() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 21.6K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/Hc4FormScheme.java
* * <p>Parameters: * <ul> * <li>ENCODING - The character encoding to use for request parameters.</li> * <li>TOKEN_URL - The URL to request the token from.</li> * <li>TOKEN_PATTERN - The regex pattern to extract the token from the response.</li> * <li>TOKEN_NAME - The name of the token parameter.</li> * <li>TOKEN_METHOD - The HTTP method to use for the token request (GET or POST).</li>
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 08 14:22:26 GMT 2026 - 14.3K 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) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
* `"request"`:在處理請求的路徑操作函式之前啟動相依(與使用 `"function"` 類似),但在回應送回用戶端之後才結束相依。所以,相依函式會在整個**請求**與回應循環的「周圍」執行。 如果未指定且相依使用了 `yield`,則預設 `scope` 為 `"request"`。 ### 子相依的 `scope` { #scope-for-sub-dependencies } 當你宣告一個 `scope="request"`(預設值)的相依時,任何子相依也需要有 `"request"` 的 `scope`。 但一個 `scope` 為 `"function"` 的相依,可以擁有 `scope` 為 `"function"` 或 `"request"` 的子相依。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
durableHandleRequested = true; // Add to create request if (createRequest != null) { createRequest.addDurableHandleContext(handleType, timeout, handleGuid); } } private void reconnectWithDurableHandle(HandleInfo handle) throws IOException { Smb2CreateRequest request = new Smb2CreateRequest(); request.setPath(handle.path); request.addReconnectContext(handle.fileId);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/CommonServerMessageBlockResponse.java
/** * * @return the next response */ @Override CommonServerMessageBlockResponse getNextResponse(); /** * Prepares this response for the next request. * * @param next the next request to prepare for */ void prepare(CommonServerMessageBlockRequest next);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.6K bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt
@Test fun get() { server.enqueue(MockResponse(body = "hello, OkHttp")) val client = OkHttpClient() val request = Request .Builder() .url(server.url("/")) .header("Accept", "text/plain") .build() val response = client.newCall(request).execute() assertThat(response.code).isEqualTo(200) assertThat(response.body.string()).isEqualTo("hello, OkHttp")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java
/** Client for RAG chat functionality. */ @Resource protected ChatClient chatClient; /** The HTTP servlet request object for the current request. */ @Resource protected HttpServletRequest request; /** Flag indicating whether search logging is enabled. */ protected boolean searchLogSupport;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 18 04:42:56 GMT 2026 - 14K bytes - Click Count (0)