- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
Http1ClientProtocolConfig,io.helidon.webclient.http1.Http1ClientProtocolConfigBlueprint,Http1Config,io.helidon.webserver.http1.Http1ConfigBlueprint,Http2ClientProtocolConfig,io.helidon.webclient.http2.Http2ClientProtocolConfigBlueprint,Http2Config,io.helidon.webserver.http2.Http2ConfigBlueprint
- All Known Implementing Classes:
Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl,Http1Config.BuilderBase.Http1ConfigImpl,Http2ClientProtocolConfig.BuilderBase.Http2ClientProtocolConfigImpl,Http2Config.BuilderBase.Http2ConfigImpl,HttpConfig.BuilderBase.HttpConfigImpl
Common configuration of HTTP protocol, regardless of its version.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpConfig.static classHttpConfig.BuilderBase<BUILDER extends HttpConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpConfig> Fluent API builder base forHttpConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static HttpConfig.Builderbuilder(HttpConfig instance) Create a new fluent API builder from an existing instance.static HttpConfigcreate()Create a new instance with default values.static HttpConfigDeprecated.static HttpConfigCreate a new instance from configuration.default HttpLogConfiglog()HTTP Log configuration.default SizeConfigure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().default booleanWhether to validate request headers.default booleanWhether to validate response headers.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
maxBufferedEntitySize
Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().- Returns:
- maximum size for a buffered entity
-
validateRequestHeaders
default boolean validateRequestHeaders()Whether to validate request headers. If set to false, any request header value is accepted, otherwise request headers and known headers are validated by format (content length is always validated as it is part of protocol processing (other headers may be validated if features use them)).Defaults to
true.- Returns:
- whether to validate request headers
-
validateResponseHeaders
default boolean validateResponseHeaders()Whether to validate response headers. If set to false, any response header value is accepted, otherwise response headers and known headers are validated by format.Defaults to
true. Disabling this setting can allow invalid response header values to be written.- Returns:
- whether to validate response headers
-
log
HTTP Log configuration.- Returns:
- log configuration
-
create(io.helidon.config.Config)