Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for onReset (1.24 sec)

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

    import okio.BufferedSource
    
    /**
     * [HTTP/2][Protocol.HTTP_2] only. Processes server-initiated HTTP requests on the client.
     * Implementations must quickly dispatch callbacks to avoid creating a bottleneck.
     *
     * While [onReset] may occur at any time, the following callbacks are expected in order,
     * correlated by stream ID.
     *
     *  * [onRequest]
     *  * [onHeaders] (unless canceled)
     *  * [onData] (optional sequence of data frames)
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

              }
            }
          }
        }
      }
    
      internal fun pushResetLater(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        pushQueue.execute("$connectionName[$streamId] onReset") {
          pushObserver.onReset(streamId, errorCode)
          withLock {
            currentPushRequests.remove(streamId)
          }
        }
      }
    
      /** Listener of streams and settings initiated by the peer. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        ): Boolean {
          events.add(AssertionError("onData"))
          notifyAll()
          return false
        }
    
        @Synchronized override fun onReset(
          streamId: Int,
          errorCode: ErrorCode,
        ) {
          events.add(AssertionError("onReset"))
          notifyAll()
        }
      }
    
      companion object {
        fun roundUp(
          num: Int,
          divisor: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
Back to top