- Sort Score
- Result 10 results
- Languages All
Results 1381 - 1390 of 2,691 for code2 (0.02 sec)
-
samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java
.build(); streamPrimesToSinkAsynchronously(pipeBody.sink()); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } private void streamPrimesToSinkAsynchronously(final BufferedSink sink) { Thread thread = new Thread("writer") {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jul 06 03:18:15 UTC 2018 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
expectedHashCode, getSet().hashCode()); } /** * Returns the {@link Method} instances for the test methods in this class which call {@code * hashCode()} on the set values so that set tests on unhashable objects can suppress it with * {@code FeatureSpecificTestSuiteBuilder.suppressing()}. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method[] getHashCodeMethods() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/advanced/response-cookies.md
You can also declare the `Response` parameter in dependencies, and set cookies (and headers) in them. ## Return a `Response` directly { #return-a-response-directly } You can also create cookies when returning a `Response` directly in your code.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/SmbRandomAccess.java
/** * Read into buffer from current position * * @param b * buffer * @param off * offset into buffer * @param len * read up to <code>len</code> bytes * @return number of bytes read * @throws SmbException if an I/O error occurs during read */ int read(byte[] b, int off, int len) throws SmbException; /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/contribute/concurrency.md
The HttpURLConnection API is a blocking API. You make a blocking write to send a request, and a blocking read to receive the response. #### Blocking APIs Blocking APIs are convenient because you get top-to-bottom procedural code without indirection. Network calls work like regular method calls: ask for data and it is returned. If the request fails, you get a stacktrace right where the call was made.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:35:36 UTC 2022 - 7K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { Cipher cipher; byte[] decrypt; byte[] code = new byte[4]; Encdec.enc_uint32le(2, code, 0); byte[] codeHmac = getHmac(code, key.getEncoded()); byte[] dataChecksum = new byte[KerberosConstants.CHECKSUM_SIZE]; System.arraycopy(data, 0, dataChecksum, 0, KerberosConstants.CHECKSUM_SIZE);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpFilter.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
assertEquals(200, response.code) assertEquals("h3", response.negotiatedProtocol) assertTrue(response.content.contains("Disallow")) } catch (ee: ExecutionException) { throw ee.cause?.cause ?: ee.cause!! } } data class Response( val code: Int, val negotiatedProtocol: String, val content: String, )Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
} @Test void constructor_shouldThrowSmbExceptionOnOpenFailure() throws IOException { // Arrange int access = 1; int rid = 100; int errorCode = 0xC0000022; // Example error code // Mock the behavior of sendrecv for MsrpcSamrOpenAlias to simulate failure doAnswer(invocation -> { MsrpcSamrOpenAlias rpc = invocation.getArgument(0);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
* that package-private fields and constants can be accessed directly. */ @ExtendWith(MockitoExtension.class) class SmbComCloseTest { /** * Ensure the constructor sets the {@code command} field of the * {@link ServerMessageBlock} superclass to {@link ServerMessageBlock#SMB_COM_CLOSE}. */ @Test @DisplayName("happy: constructor sets command correctly")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0)