- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for on_connect (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/curl/CurlRequestTest.java
// Setting onConnect to null should work request.onConnect(null); assertNotNull(request); } @Test public void testMultipleOnConnectCalls() { CurlRequest request = new CurlRequest(Method.GET, "https://example.com"); // Multiple onConnect calls should work (last one wins) request.onConnect((req, conn) -> conn.setConnectTimeout(1000));Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 24.7K bytes - Click Count (0) -
internal/grid/msg.go
// Op is operation type messages. type Op uint8 // HandlerID is the ID for the handler of a specific type. type HandlerID uint8 const ( // OpConnect is a connect request. OpConnect Op = iota + 1 // OpConnectResponse is a response to a connect request. OpConnectResponse // OpPing is a ping request. // If a mux id is specified that mux is pinged.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Jul 25 21:07:21 GMT 2024 - 7.6K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
mockHolder[0] = mock; return mock; }); req.timeout(3000, 5000); // onConnect runs AFTER timeout, so it can override req.onConnect((r, conn) -> { conn.setReadTimeout(9999); onConnectReadTimeout.set(conn.getReadTimeout()); }); // ## Act ##
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java
} else if (entry.getValue().length == 1) { curlRequest.param(entry.getKey(), entry.getValue()[0]); } }); try (final CurlResponse curlResponse = curlRequest.onConnect((req, con) -> { con.setDoOutput(true); if (httpMethod != Method.GET && request.getContentLength() > 2) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:40 GMT 2026 - 13.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java
} final ObjectMapper mapper = new ObjectMapper(); final AtomicBoolean resetJobs = new AtomicBoolean(false); try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_bulk").onConnect((req, con) -> { con.setDoOutput(true); try (final BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(tempFile)));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Nov 24 02:07:40 GMT 2025 - 32.1K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
/** * Sets the connection builder for customizing the connection. * * @param connectionBuilder the connection builder * @return this CurlRequest instance */ public CurlRequest onConnect(final BiConsumer<CurlRequest, HttpURLConnection> connectionBuilder) { this.connectionBuilder = connectionBuilder; return this; } /** * Adds a request parameter. *Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0) -
internal/grid/manager.go
} var message message _, _, err = message.parse(msg) if err != nil { writeErr(fmt.Errorf("error parsing grid connect: %w", err)) return } if message.Op != OpConnect { writeErr(fmt.Errorf("unexpected connect op: %v", message.Op)) return } var cReq connectReq _, err = cReq.UnmarshalMsg(message.Payload) if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Nov 12 20:41:41 GMT 2024 - 10.8K bytes - Click Count (0)