Class Http2ClientConnection

java.lang.Object
io.helidon.webclient.http2.Http2ClientConnection

public class Http2ClientConnection extends Object
Represents an HTTP2 connection on the client.
  • Method Details

    • create

      public static Http2ClientConnection create(Http2ClientImpl http2Client, ClientConnection connection, boolean sendSettings)
      Creates an HTTP2 client connection.
      Parameters:
      http2Client - the HTTP2 client
      connection - the client connection
      sendSettings - whether to send the settings or not
      Returns:
      an HTTP2 client connection
    • streamIdSequence

      public LockingStreamIdSequence streamIdSequence()
      Stream ID sequence.
      Returns:
      the ID sequence
    • addStream

      public void addStream(int streamId, Http2ClientStream stream)
      Adds a stream to the connection.
      Parameters:
      streamId - the stream ID
      stream - the stream
    • removeStream

      public void removeStream(int streamId)
      Removes a stream from the connection.
      Parameters:
      streamId - the stream ID
    • close

      public void close()
      Closes this connection.