- Sort Score
- Num 10 results
- Language All
Results 841 - 850 of 1,934 for Response_ (0.06 seconds)
-
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
val call = client.newCall(networkRequest) call.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNull() } val cachedCall = client.newCall(request) cachedCall.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNotNull() } } @TestCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0) -
docs_src/app_testing/tutorial001_py310.py
app = FastAPI() @app.get("/") async def read_main(): return {"msg": "Hello World"} client = TestClient(app) def test_read_main(): response = client.get("/") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 334 bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
byte[] response = NtlmPasswordAuthentication.getPreNTLMResponse("password", challenge); assertNotNull(response); assertEquals(24, response.length); } // Test getNTLMResponse @Test void testGetNTLMResponse() { byte[] challenge = { 1, 2, 3, 4, 5, 6, 7, 8 }; byte[] response = NtlmPasswordAuthentication.getNTLMResponse("password", challenge);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.9K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt
.Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") val gist = gistJsonAdapter.fromJson(response.body!!.source()) for ((key, value) in gist!!.files!!) { println(key) println(value.content) } } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} @Throws(IOException::class) fun openResponseBody(response: Response): ResponseBody { try { val contentType = response.header("Content-Type") val contentLength = codec.reportedContentLength(response) val rawSource = codec.openResponseBodySource(response) val source = ResponseBodySource( delegate = rawSource, contentLength = contentLength,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBSigningDigestTest.java
// Arrange int offset = 0; int length = testData.length; // Act signingDigest.sign(testData, offset, length, request, response); // Assert verify(signingDigest, times(1)).sign(testData, offset, length, request, response); } @Test @DisplayName("Test sign method with different offsets") void testSignWithDifferentOffsets() { // ArrangeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/SsoAuthenticator.java
*/ void resolveCredential(LoginCredentialResolver resolver); /** * Gets the action response for the specified SSO response type. * @param responseType The type of SSO response required. * @return The action response. */ ActionResponse getResponse(SsoResponseType responseType); /** * Performs logout for the specified user.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.2K bytes - Click Count (1) -
samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 02 14:04:37 GMT 2023 - 2.1K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/Progress.java
.addNetworkInterceptor(chain -> { Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder() .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); }) .build(); try (Response response = client.newCall(request).execute()) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 3.9K bytes - Click Count (0)