Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pushObserver (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

      /** Indicates the reason why this stream was canceled. */
      fun onReset(
        streamId: Int,
        errorCode: ErrorCode,
      )
    
      companion object {
        @JvmField val CANCEL: PushObserver = PushObserverCancel()
    
        private class PushObserverCancel : PushObserver {
          override fun onRequest(
            streamId: Int,
            requestHeaders: List<Header>,
          ): Boolean {
            return true
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          this.sink = sink
        }
    
        fun listener(listener: Listener) =
          apply {
            this.listener = listener
          }
    
        fun pushObserver(pushObserver: PushObserver) =
          apply {
            this.pushObserver = pushObserver
          }
    
        fun pingIntervalMillis(pingIntervalMillis: Int) =
          apply {
            this.pingIntervalMillis = pingIntervalMillis
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      private fun connect(
        peer: MockHttp2Peer,
        pushObserver: PushObserver = IGNORE,
        listener: Http2Connection.Listener = Http2Connection.Listener.REFUSE_INCOMING_STREAMS,
      ): Http2Connection {
        val connection =
          Http2Connection.Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket())
            .pushObserver(pushObserver)
            .listener(listener)
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        peer.acceptFrame() // PING
        peer.play()
    
        // Play it back.
        val connection =
          Http2Connection.Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket())
            .pushObserver(Http2ConnectionTest.IGNORE)
            .listener(realConnection)
            .build()
        connection.start(sendConnectionPreface = false)
    
        // verify the peer received the ACK
        val ackFrame = peer.takeFrame()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jun 22 16:06:35 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top