- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 1,292 for RESPONSE (0.03 sec)
-
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt
replaceWith = ReplaceWith( expression = "response.processEventSource(listener)", imports = ["okhttp3.sse.EventSource.Companion.processEventSource"], ), level = DeprecationLevel.WARNING, ) @JvmStatic fun processResponse( response: Response, listener: EventSourceListener, ): Unit = response.processEventSource(listener)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:47:47 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
CreateContextResponse response = mock(CreateContextResponse.class); when(response.getName()).thenReturn(expectedName); byte[] actualName = response.getName(); assertArrayEquals(expectedName, actualName); verify(response, times(1)).getName(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
val response = call.execute() // Body contains nothing. assertThat(response.body.bytes().size).isEqualTo(0) assertThat(response.body.contentLength()).isEqualTo(0) // Content-Length header doesn't exist in a 204 response. assertThat(response.header("content-length")).isNull() assertThat(response.code).isEqualTo(204) val request = server.takeRequest()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
call.execute().use { response -> assertThat( response.body.string(), ).isEqualTo("unrelated response body!") } assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) // No connection reuse. assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) for (response in responsesNotClosed) { response!!.closeQuietly() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
assertEquals(b, response.b); assertEquals(0, response.off); } @Test public void testSetParam() { byte[] b = new byte[0]; response.setParam(b, 0); assertEquals(b, response.b); assertEquals(0, response.off); } @Test public void testWriteParameterWordsWireFormat() { assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
.url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new Authenticate().run(); }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt
val request = Request(server.url("/")) val response = client.newCall(request).execute() response.use { assertEquals(200, response.code) assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion) assertEquals(Protocol.HTTP_2, response.protocol) assertThat(response.exchangeAccessor!!.connectionAccessor.socket()) .isInstanceOf<SSLSocketImpl>() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt
val webSocket: WebSocket, val response: Response, ) internal class Failure( val t: Throwable, val response: Response?, ) { val responseBody: String? = when { response != null && response.code != 101 -> response.body.string() else -> null } override fun toString(): String = when (response) { null -> "Failure[$t]"
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
serverData.encryptionKeyLength = 8; response.flags2 = ServerMessageBlock.FLAGS2_UNICODE; byte[] domainNameBytes = "DOMAIN_U".getBytes("UTF-16LE"); response.byteCount = 8 + domainNameBytes.length + 2; // key + domain + null terminator // Prepare byte array byte[] encryptionKey = "12345678".getBytes(); ByteBuffer buffer = ByteBuffer.allocate(response.byteCount); buffer.put(encryptionKey);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java
import org.codelibs.fess.dict.kuromoji.KuromojiFile; import org.codelibs.fess.dict.kuromoji.KuromojiItem; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import org.lastaflute.web.response.StreamResponse; import jakarta.annotation.Resource; /** * API action for admin Kuromoji dictionary management.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 9.4K bytes - Viewed (0)