Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for pushPromise (0.06 seconds)

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

        protocol = Protocol.get("")
      }
    
      @Test
      fun pushPromise() {
        val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse())
        val method: String = pushPromise.method
        val path: String = pushPromise.path
        val headers: Headers = pushPromise.headers
        val response: MockResponse = pushPromise.response
      }
    
      @Test
      fun queueDispatcher() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

      }
    
      @Test
      fun serverSendsPushPromise_GET() {
        val pushPromise =
          PushPromise(
            "GET",
            "/foo/bar",
            headersOf("foo", "bar"),
            MockResponse(body = "bar"),
          )
        server.enqueue(
          MockResponse
            .Builder()
            .body("ABCDE")
            .addPush(pushPromise)
            .build(),
        )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

      @Test fun doublePushPromise() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
        peer.sendFrame().pushPromise(3, 2, headerEntries("a", "android"))
        peer.acceptFrame() // SYN_REPLY
        peer.sendFrame().pushPromise(3, 2, headerEntries("b", "banana"))
        peer.acceptFrame() // RST_STREAM
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 75.5K bytes
    - Click Count (0)
Back to Top