Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 79 of 79 for mockResponse (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        unit: TimeUnit,
      ): RecordedRequest? = delegate.takeRequest(timeout, unit)?.unwrap()
    
      @JvmName("-deprecated_requestCount")
      fun getRequestCount(): Int = delegate.requestCount
    
      fun enqueue(response: MockResponse) {
        delegate.enqueue(response.wrap())
      }
    
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) {
        started = true
        delegate.start(port)
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 00:19:42 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  2. okhttp-tls/README.md

        .heldCertificate(serverCertificate)
        .build();
    MockWebServer server = new MockWebServer();
    server.useHttps(serverCertificates.sslSocketFactory(), false);
    server.requestClientAuth();
    server.enqueue(new MockResponse());
    
    // Create a client certificate and a client that uses it.
    HeldCertificate clientCertificate = new HeldCertificate.Builder()
        .commonName("ianmalcolm")
        .signedBy(rootCertificate)
        .build();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

        @Mock
        private Configuration mockConfig;
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Smb2SigningDigest mockDigest;
    
        @Mock
        private ServerMessageBlock2Response mockResponse;
    
        private TestServerMessageBlock2Request testRequest;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testRequest = new TestServerMessageBlock2Request(mockConfig);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  4. CHANGELOG.md

        component headers.
    
     *  Breaking: Change `RecordedRequest.body` from a mutable `Buffer` to an immutable `ByteString`.
    
     *  Breaking: Adopt Okio's new `Socket` interface for `MockResponse.socketHandler`.
    
    Note that any _Breaking_ changes above impact only APIs introduced in earlier 5.0.0-alpha releasees.
    We don't break binary compatibility with non-alpha APIs.
    
    
    ## Version 5.0.0-alpha.16
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

    class ServerMessageBlock2Test {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private Smb2SigningDigest mockDigest;
    
        @Mock
        private ServerMessageBlock2Response mockResponse;
    
        private TestServerMessageBlock2 testMessage;
    
        // Test implementation of abstract class
        private static class TestServerMessageBlock2 extends ServerMessageBlock2 {
            private int bytesWritten = 0;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

     */
    public sealed interface SocketEffect {
      /**
       * Close the TCP socket that carries this request.
       *
       * Using this as [MockResponse.onResponseEnd] is the default for HTTP/1.0.
       */
      public class CloseSocket(
        public val closeSocket: Boolean = true,
        public val shutdownInput: Boolean = false,
        public val shutdownOutput: Boolean = false,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  7. docs/changelogs/changelog_3x.md

        to permit an optional client certificate or `requireClientAuth()` to require one.
     *  New: `RecordedRequest.getHandshake()` returns the HTTPS handshake of a request sent to
        `MockWebServer`.
     *  Fix: Honor the `MockResponse` header delay in MockWebServer.
     *  Fix: Don't release HTTP/2 connections that have multiple canceled calls. We had a bug where
        canceling calls would cause the shared HTTP/2 connection to be unnecessarily released. This
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
  8. docs/changelogs/changelog_4x.md

        exception the callback is now notified that the call was canceled. The exception is still sent
        to the uncaught exception handler for reporting and recovery.
    
     *  Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
        4.0 but that broke method chaining for Java callers.
    
     *  Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

        void testConstructor() {
            // Given & When
            Smb2LockResponse lockResponse = new Smb2LockResponse(mockConfig);
    
            // Then
            assertNotNull(lockResponse);
            // Verify it's an instance of ServerMessageBlock2Response
            assertTrue(lockResponse instanceof jcifs.internal.smb2.ServerMessageBlock2Response);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
Back to Top