Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mockResponse (0.05 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        setUp(protocol)
        server.enqueue(MockResponse(code = 401))
        server.enqueue(
          MockResponse
            .Builder()
            .onRequestStart(CloseStream(ErrorCode.INTERNAL_ERROR.httpCode))
            .build(),
        )
        server.enqueue(MockResponse(body = "DEF"))
        server.enqueue(
          MockResponse(
            code = 301,
            headers = headersOf("Location", "/foo"),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun secondCallEventSequence() {
        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(MockResponse())
        server.enqueue(MockResponse())
        client
          .newCall(
            Request
              .Builder()
              .url(server.url("/"))
              .build(),
          ).execute()
          .close()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top