Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,344 for response (0.09 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // truncate metadata to 1/4 of length
              it.substring(0, it.length / 4)
            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.2") // not cached
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            // Act & Assert - These should not throw exceptions
            assertEquals(0, response.writeSetupWireFormat(emptyBuffer, 0));
            assertEquals(0, response.writeParametersWireFormat(emptyBuffer, 0));
            assertEquals(0, response.writeDataWireFormat(emptyBuffer, 0));
            assertEquals(0, response.readSetupWireFormat(emptyBuffer, 0, 0));
            assertEquals(0, response.readDataWireFormat(emptyBuffer, 0, 0));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

     *    libraries may customize this behavior.)
     *
     * A good way to signal a failure is with a synthetic HTTP response:
     *
     * ```kotlin
     *   @Throws(IOException::class)
     *   override fun intercept(chain: Interceptor.Chain): Response {
     *     if (myConfig.isInvalid()) {
     *       return Response.Builder()
     *           .request(chain.request())
     *           .protocol(Protocol.HTTP_1_1)
     *           .code(400)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                // Both should create valid responses
                Smb2EchoResponse response1 = request1.createResponse(mockContext, request1);
                Smb2EchoResponse response2 = request2.createResponse(mockContext, request2);
    
                assertNotNull(response1);
                assertNotNull(response2);
                assertNotSame(response1, response2);
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/Type3Message.java

            this.lmResponse = lmResponse;
        }
    
        /**
         * Returns the NT/NTLMv2 response.
         *
         * @return A <code>byte[]</code> containing the NT/NTLMv2 response.
         */
        public byte[] getNTResponse() {
            return this.ntResponse;
        }
    
        /**
         * Sets the NT/NTLMv2 response for this message.
         *
         * @param ntResponse
         *            The NT/NTLMv2 response.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.FileEntry;
    
    /**
     * Base class for SMB1 transaction response messages.
     * This abstract class handles the common functionality for all SMB1 transaction responses,
     * including parameter and data buffer management, multi-part responses, and enumeration support.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. docs/features/interceptors.md

            request.url(), chain.connection(), request.headers()));
    
        Response response = chain.proceed(request);
    
        long t2 = System.nanoTime();
        logger.info(String.format("Received response for %s in %.1fms%n%s",
            response.request().url(), (t2 - t1) / 1e6d, response.headers()));
    
        return response;
      }
    }
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/CurlResponseTest.java

            assertEquals(statusCode, response.getHttpStatusCode());
        }
    
        @Test
        public void testEncoding() {
            CurlResponse response = new CurlResponse();
            String encoding = "UTF-8";
    
            response.setEncoding(encoding);
    
            assertEquals(encoding, response.getEncoding());
        }
    
        @Test
        public void testContentException() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. README.md

    import org.codelibs.curl.CurlResponse;
    
    try (CurlResponse response = Curl.get("https://example.com")
                                    .param("q", "curl4j")
                                    .header("Accept", "application/json")
                                    .executeSync()) {
        System.out.println("Status: " + response.getHttpStatusCode());
        System.out.println(response.getContentAsString());
    }
    ```
    
    ### Asynchronous request
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:11:14 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            response = new Trans2QueryFSInformationResponse(config, informationLevel);
    
            assertNotNull(response);
            assertEquals(informationLevel, response.getInformationLevel());
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, response.getCommand());
            assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, response.getSubCommand());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top