Class HttpConfig.BuilderBase.HttpConfigImpl
java.lang.Object
io.helidon.http.HttpConfig.BuilderBase.HttpConfigImpl
- All Implemented Interfaces:
Prototype.Api, HttpConfig
- Direct Known Subclasses:
Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl, Http1Config.BuilderBase.Http1ConfigImpl, Http2ClientProtocolConfig.BuilderBase.Http2ClientProtocolConfigImpl, Http2Config.BuilderBase.Http2ConfigImpl
- Enclosing class:
HttpConfig.BuilderBase<BUILDER extends HttpConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpConfig>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpConfig
HttpConfig.Builder, HttpConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpConfig.static classHttpConfig.BuilderBase<BUILDER extends HttpConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpConfig>Fluent API builder base forHttpConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpConfigImpl(HttpConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()log()HTTP Log configuration.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().intConfigure the maximum allowed headers size, which must be greater than0.toString()booleanWhether to validate request headers.booleanWhether to validate response headers.
-
Constructor Details
-
HttpConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
maxHeadersSize
public int maxHeadersSize()Description copied from interface:HttpConfigConfigure the maximum allowed headers size, which must be greater than0. Defaults to16384.- Specified by:
maxHeadersSizein interfaceHttpConfig- Returns:
- maximum headers size
-
maxBufferedEntitySize
Description copied from interface:HttpConfigConfigure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().- Specified by:
maxBufferedEntitySizein interfaceHttpConfig- Returns:
- maximum size for a buffered entity
-
validateRequestHeaders
public boolean validateRequestHeaders()Description copied from interface:HttpConfigWhether 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.- Specified by:
validateRequestHeadersin interfaceHttpConfig- Returns:
- whether to validate request headers
-
validateResponseHeaders
public boolean validateResponseHeaders()Description copied from interface:HttpConfigWhether 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.- Specified by:
validateResponseHeadersin interfaceHttpConfig- Returns:
- whether to validate response headers
-
log
Description copied from interface:HttpConfigHTTP Log configuration.- Specified by:
login interfaceHttpConfig- Returns:
- log configuration
-
toString
-
equals
-
hashCode
-