java.lang.Object
io.helidon.webclient.http2.Http2ClientConnection
Represents an HTTP2 connection on the client.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStream(int streamId, Http2ClientStream stream) Adds a stream to the connection.voidclose()Closes this connection.static Http2ClientConnectioncreate(Http2ClientImpl http2Client, ClientConnection connection, boolean sendSettings) Creates an HTTP2 client connection.voidremoveStream(int streamId) Removes a stream from the connection.Stream ID sequence.
-
Method Details
-
create
public static Http2ClientConnection create(Http2ClientImpl http2Client, ClientConnection connection, boolean sendSettings) Creates an HTTP2 client connection.- Parameters:
http2Client- the HTTP2 clientconnection- the client connectionsendSettings- whether to send the settings or not- Returns:
- an HTTP2 client connection
-
streamIdSequence
Stream ID sequence.- Returns:
- the ID sequence
-
addStream
Adds a stream to the connection.- Parameters:
streamId- the stream IDstream- 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.
-