- Sort Score
- Num 10 results
- Language All
Results 1081 - 1090 of 1,838 for RESPONSE (0.36 seconds)
-
okhttp/src/jvmTest/kotlin/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 ->
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 9.4K bytes - Click Count (0) -
docs_src/app_testing/tutorial002_py39.py
await websocket.accept() await websocket.send_json({"msg": "Hello WebSocket"}) await websocket.close() def test_read_main(): client = TestClient(app) response = client.get("/") assert response.status_code == 200 assert response.json() == {"msg": "Hello World"} def test_websocket(): client = TestClient(app) with client.websocket_connect("/ws") as websocket:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 757 bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessUnregisterResponse.java
*/ package jcifs.internal.witness; /** * Represents a witness unregistration response as defined in MS-SWN specification. * Contains the result of a witness unregistration request. */ public class WitnessUnregisterResponse { /** * Creates a new witness unregister response. */ public WitnessUnregisterResponse() { // Default constructor }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 2K bytes - Click Count (0) -
docs/de/docs/how-to/custom-request-and-route.md
In diesem Beispiel verwenden die *Pfadoperationen* unter dem `router` die benutzerdefinierte `TimedRoute`-Klasse und haben in der Response einen zusätzlichen `X-Response-Time`-Header mit der Zeit, die zum Generieren der Response benötigt wurde:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 5.7K bytes - Click Count (0) -
internal/dsync/lock-args.go
Quorum *int `msgp:"omitempty"` } // ResponseCode is the response code for a locking request. type ResponseCode uint8 // Response codes for a locking request. const ( RespOK ResponseCode = iota RespLockConflict RespLockNotInitialized RespLockNotFound RespErr ) // LockResp is a locking request response. type LockResp struct { Code ResponseCode Err string
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 24 10:24:01 GMT 2024 - 1.8K bytes - Click Count (0) -
internal/http/close.go
package http import ( "io" xioutil "github.com/minio/minio/internal/ioutil" ) // DrainBody close non nil response with any response Body. // convenient wrapper to drain any remaining data on response body. // // Subsequently this allows golang http RoundTripper // to reuse the same connection for future requests. func DrainBody(respBody io.ReadCloser) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 1.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/plugin/ApiAdminPluginAction.java
import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; import org.codelibs.fess.helper.PluginHelper.Artifact; import org.codelibs.fess.util.ComponentUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; /** * API action for admin plugin management. */ public class ApiAdminPluginAction extends FessApiAdminAction {Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 4.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CancelCall.java
}, 1, TimeUnit.SECONDS); System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f); try (Response response = call.execute()) { System.out.printf("%.2f Call was expected to fail, but completed: %s%n", (System.nanoTime() - startNanos) / 1e9f, response); } catch (IOException e) { System.out.printf("%.2f Call failed as expected: %s%n",Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Tree Disconnect response message. * * This response confirms that the tree connection * has been successfully disconnected. * * @author mbechler */ public class Smb2TreeDisconnectResponse extends ServerMessageBlock2Response { /** * Creates a new SMB2 tree disconnect response. * * @param config the CIFS configuration */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
val request = client .newRequest(server.url("/").toUri()) .header("Accept", "text/plain") val response = request.send() assertThat(response.status).isEqualTo(200) assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client") val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 2.1K bytes - Click Count (0)