Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for RecordedRequest (0.07 sec)

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

    import okhttp3.Handshake.Companion.handshake
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.TlsVersion
    import okio.Buffer
    
    class RecordedRequest {
      val requestLine: String
      val headers: Headers
      val chunkSizes: List<Int>
      val bodySize: Long
      val body: Buffer
      val sequenceNumber: Int
      val failure: IOException?
      val method: String?
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

    import java.io.IOException
    import okhttp3.Handshake
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okio.ByteString
    
    /** An HTTP request that came into the mock web server. */
    public class RecordedRequest(
      /**
       * The index of the socket connection that carried this request. If two recorded requests share a
       * connection index, they also shared a socket connection.
       */
      public val connectionIndex: Int,
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

            .build()
        client.newCall(request).execute()
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.body?.utf8()).isEqualTo("ABC")
        assertThat(recordedRequest.headers["Original-Header"]).isEqualTo("foo")
        assertThat(recordedRequest.headers["OkHttp-Intercepted"]).isEqualTo("yep")
        assertThat(recordedRequest.method).isEqualTo("POST")
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import mockwebserver3.internal.DEFAULT_REQUEST_LINE_HTTP_1
    import mockwebserver3.internal.DEFAULT_REQUEST_LINE_HTTP_2
    import mockwebserver3.internal.MockWebServerSocket
    import mockwebserver3.internal.RecordedRequest
    import mockwebserver3.internal.RequestLine
    import mockwebserver3.internal.ThrottledSink
    import mockwebserver3.internal.TriggerSink
    import mockwebserver3.internal.decodeRequestLine
    import okhttp3.Headers
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int> = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
        var utf8Body: String = recordedRequest.body.readUtf8()
        var sequenceNumber: Int = recordedRequest.sequenceNumber
        var tlsVersion: TlsVersion? = recordedRequest.tlsVersion
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int>? = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
        var utf8Body: String = recordedRequest.body.readUtf8()
        var sequenceNumber: Int = recordedRequest.sequenceNumber
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  7. okhttp-tls/README.md

        .url(server.url("/"))
        .build());
    Response response = call.execute();
    System.out.println(response.handshake().peerPrincipal());
    RecordedRequest recordedRequest = server.takeRequest();
    System.out.println(recordedRequest.getHandshake().peerPrincipal());
    ```
    
    This handshake is successful because each party has prearranged to trust the root certificate that
    signs the other party's chain.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. CHANGELOG.md

        these accessors will throw an `IllegalStateException` if the service has not yet been started.
    
     *  Breaking: Rename `RecordedRequest.path` to `RecordedRequest.target`. (This property is
        _sometimes_ a path, but it can also be a path and query, or a full URL.)
    
     *  Breaking: Decompose the `RecordedRequest.requestLine` into three properties, `method`, `target`,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/RecordedRequestFactory.kt

    import java.io.IOException
    import java.net.Inet6Address
    import java.net.ProtocolException
    import mockwebserver3.RecordedRequest
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okio.ByteString
    
    internal fun RecordedRequest(
      requestLine: RequestLine,
      headers: Headers,
      chunkSizes: List<Int>?,
      bodySize: Long,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 12:43:16 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

              "0003b00049df00112",
          ),
        )
        val result = dns.lookup("google.com")
        assertThat(result).isEqualTo(listOf(address("157.240.1.18")))
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.method).isEqualTo("GET")
        assertThat(recordedRequest.url.encodedQuery)
          .isEqualTo("ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      @Test
      fun getIpv6() {
        server.enqueue(
          dnsResponse(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top