public final class HttpServerConfig extends reactor.netty.transport.ServerTransportConfig<HttpServerConfig>
| Modifier and Type | Method and Description |
|---|---|
java.util.function.BiPredicate<HttpServerRequest,HttpServerResponse> |
compressPredicate()
Return the configured compression predicate or null.
|
ServerCookieDecoder |
cookieDecoder()
Return the configured
ServerCookieDecoder or the default ServerCookieDecoder.STRICT. |
ServerCookieEncoder |
cookieEncoder()
Return the configured
ServerCookieEncoder or the default ServerCookieEncoder.STRICT. |
HttpRequestDecoderSpec |
decoder()
Return the configured HTTP request decoder options or the default.
|
protected LoggingHandler |
defaultLoggingHandler() |
protected LoopResources |
defaultLoopResources() |
protected ChannelMetricsRecorder |
defaultMetricsRecorder() |
protected ChannelPipelineConfigurer |
defaultOnChannelInit() |
Http2SettingsSpec |
http2SettingsSpec()
Return the HTTP/2 configuration
|
boolean |
isForwarded()
Returns whether that
HttpServer supports the "Forwarded" and "X-Forwarded-*"
HTTP request headers for deriving information about the connection. |
boolean |
isSecure()
Returns true if that
HttpServer secured via SSL transport |
protected void |
loggingHandler(LoggingHandler loggingHandler) |
protected void |
metricsRecorder(java.util.function.Supplier<? extends ChannelMetricsRecorder> metricsRecorder) |
int |
minCompressionSize()
Compression is performed once response size exceeds the minimum compression size in bytes.
|
HttpProtocol[] |
protocols()
Return the HTTP protocol to support.
|
ProxyProtocolSupportType |
proxyProtocolSupportType()
Return the supported type for the
"HAProxy proxy protocol". |
SslProvider |
sslProvider()
Returns the current
SslProvider if that HttpServer secured via SSL
transport or null. |
java.util.function.Function<String,String> |
uriTagValue()
Returns the configured function that receives the actual uri and returns the uri tag value
that will be used for the metrics with
Metrics.URI tag |
channelType, childAttributes, childObserver, childOptions, defaultChildObserver, defaultConnectionObserver, doOnBind, doOnBound, doOnConnection, doOnUnbound, eventLoopGroupattributes, bindAddress, channelGroup, channelHash, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loopResources, metricsRecorder, options, updateMap@Nullable public java.util.function.BiPredicate<HttpServerRequest,HttpServerResponse> compressPredicate()
public ServerCookieDecoder cookieDecoder()
ServerCookieDecoder or the default ServerCookieDecoder.STRICT.ServerCookieDecoder or the default ServerCookieDecoder.STRICTpublic ServerCookieEncoder cookieEncoder()
ServerCookieEncoder or the default ServerCookieEncoder.STRICT.ServerCookieEncoder or the default ServerCookieEncoder.STRICTpublic HttpRequestDecoderSpec decoder()
public Http2SettingsSpec http2SettingsSpec()
public boolean isForwarded()
HttpServer supports the "Forwarded" and "X-Forwarded-*"
HTTP request headers for deriving information about the connection.HttpServer supports the "Forwarded" and "X-Forwarded-*"
HTTP request headers for deriving information about the connectionpublic boolean isSecure()
HttpServer secured via SSL transportHttpServer secured via SSL transportpublic int minCompressionSize()
public HttpProtocol[] protocols()
HttpProtocol.HTTP11.public ProxyProtocolSupportType proxyProtocolSupportType()
"HAProxy proxy protocol".
The default is ProxyProtocolSupportType.OFF."HAProxy proxy protocol"@Nullable public SslProvider sslProvider()
SslProvider if that HttpServer secured via SSL
transport or null.SslProvider if that HttpServer secured via SSL
transport or null@Nullable public java.util.function.Function<String,String> uriTagValue()
Metrics.URI tagMetrics.URI tagprotected LoggingHandler defaultLoggingHandler()
defaultLoggingHandler in class reactor.netty.transport.TransportConfigprotected LoopResources defaultLoopResources()
defaultLoopResources in class reactor.netty.transport.TransportConfigprotected ChannelMetricsRecorder defaultMetricsRecorder()
defaultMetricsRecorder in class reactor.netty.transport.TransportConfigprotected ChannelPipelineConfigurer defaultOnChannelInit()
defaultOnChannelInit in class reactor.netty.transport.ServerTransportConfig<HttpServerConfig>protected void loggingHandler(LoggingHandler loggingHandler)
loggingHandler in class reactor.netty.transport.TransportConfigprotected void metricsRecorder(@Nullable java.util.function.Supplier<? extends ChannelMetricsRecorder> metricsRecorder)
metricsRecorder in class reactor.netty.transport.TransportConfig