类 Http2Connection.Listener

java.lang.Object
com.lark.oapi.okhttp.internal.http2.Http2Connection.Listener
直接已知子类:
RealConnection
封闭类:
Http2Connection

public abstract static class Http2Connection.Listener extends Object
Listener of streams and settings initiated by the peer.
  • 字段详细资料

  • 构造器详细资料

    • Listener

      public Listener()
  • 方法详细资料

    • onStream

      public abstract void onStream(Http2Stream stream) throws IOException
      Handle a new stream from this connection's peer. Implementations should respond by either replying to the stream or closing it. This response does not need to be synchronous.
      抛出:
      IOException
    • onSettings

      public void onSettings(Http2Connection connection)
      Notification that the connection's peer's settings may have changed. Implementations should take appropriate action to handle the updated settings.

      It is the implementation's responsibility to handle concurrent calls to this method. A remote peer that sends multiple settings frames will trigger multiple calls to this method, and those calls are not necessarily serialized.