Module io.helidon.webserver.http2
Package io.helidon.webserver.http2
Class Http2UpgradeProvider.Builder
java.lang.Object
io.helidon.webserver.http2.Http2UpgradeProvider.Builder
- All Implemented Interfaces:
Builder<Http2UpgradeProvider.Builder,,Http2UpgradeProvider> Supplier<Http2UpgradeProvider>
- Enclosing class:
Http2UpgradeProvider
public static class Http2UpgradeProvider.Builder
extends Object
implements Builder<Http2UpgradeProvider.Builder,Http2UpgradeProvider>
Fluent API builder for
Http2UpgradeProvider.-
Method Summary
Modifier and TypeMethodDescriptionAdd a configured sub-protocol provider.build()Build the instance from this builder.http2Config(Http2Config http2Config) Custom configuration of HTTP/2 connections.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<Http2UpgradeProvider.Builder,Http2UpgradeProvider> - Returns:
- instance of the built type
-
http2Config
Custom configuration of HTTP/2 connections. If not defined, it will be configured from config, or defaults would be used.- Parameters:
http2Config- HTTP/2 configuration- Returns:
- updated builder
-
addSubProtocolProvider
Add a configured sub-protocol provider. This will replace the instance discovered through service loader (if one exists).- Parameters:
provider- provider to add- Returns:
- updated builer
-