- Sort Score
- Result 10 results
- Languages All
Results 1141 - 1150 of 1,838 for RESPONSE (0.03 sec)
-
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 Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 9.5K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
val request = HttpRequest .newBuilder(server.url("/").toUri()) .header("Accept", "text/plain") .build() val response = httpClient.send(request, BodyHandlers.ofString()) assertThat(response.statusCode()).isEqualTo(200) assertThat(response.body()).isEqualTo("hello, Java HTTP Client") val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 2.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/PublicInternalApiTest.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.5K bytes - Viewed (0) -
cmd/bucket-lifecycle-handlers_test.go
if rec.Code != testCase.expectedRespStatus { t.Errorf("Test %d: %s: Expected the response status to be `%d`, but instead found `%d`", i+1, instanceType, testCase.expectedRespStatus, rec.Code) } if testCase.shouldPass && !bytes.Equal(testCase.lifecycleResponse, rec.Body.Bytes()) { t.Errorf("Test %d: %s: Expected the response to be `%s`, but instead found `%s`", i+1, instanceType, string(testCase.lifecycleResponse), rec.Body.String())Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 11.3K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial002_py39.py
from fastapi import Body, FastAPI, HTTPException, Request, Response from fastapi.exceptions import RequestValidationError from fastapi.routing import APIRoute class ValidationErrorLoggingRoute(APIRoute): def get_route_handler(self) -> Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request) -> Response: try:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 926 bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
import jcifs.internal.TreeConnectResponse; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.ServerMessageBlock2Response; import jcifs.internal.util.SMBUtil; /** * SMB2 Tree Connect response message. * * This response contains information about the connected * tree, including share type and capabilities. * * @author mbechler */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
} /** * Creates a Type-2 message in response to the given Type-1 message * using default values from the current environment. * * @param tc * context to use * @param type1 * The Type-1 message which this represents a response to. */ public Type2Message(final CIFSContext tc, final Type1Message type1) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
final int[] queryCount = { 0 }; // Mock send(create) to wire a query response with fe1, fe2 doAnswer(inv -> { Object arg = inv.getArgument(0); if (arg instanceof Smb2CreateRequest) { Smb2CreateRequest create = (Smb2CreateRequest) arg; // Initialize response chain (also for chained query) Smb2CreateResponse cr = create.initResponse(cifsContext);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial001_py39.py hl[11] *} ### Die resultierende Response { #the-resulting-response } Wenn der Client `http://example.com/items/foo` anfordert (ein `item_id` `"foo"`), erhält dieser Client einen HTTP-Statuscode 200 und diese JSON-Response: ```JSON { "item": "The Foo Wrestlers" } ```Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/labeltype/ApiAdminLabeltypeAction.java
import org.codelibs.fess.helper.PermissionHelper; import org.codelibs.fess.opensearch.config.exentity.LabelType; import org.codelibs.fess.util.ComponentUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; /** * API action for admin label type management. * */ public class ApiAdminLabeltypeAction extends FessApiAdminAction {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 8.5K bytes - Viewed (0)