Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
var channelPipelineConfig: ChannelPipeline.() -> Unit

User-provided function to configure Netty's ChannelPipeline

Link copied to clipboard
var configureBootstrap: ServerBootstrap.() -> Unit

User-provided function to configure Netty's ServerBootstrap

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If set to true, adds Netty's io.netty.handler.flush.FlushConsolidationHandler as the first handler in the channel pipeline. It batches back-to-back flush() calls (for example, from pipelined responses) into a single transport write, which can improve throughput under concurrent load at the cost of slightly delaying individual flushes.

Link copied to clipboard

If set to true and enableHttp2 is set to true, enables HTTP/2 protocol without TLS (h2c) for unencrypted connectors. SSL connectors are unaffected and continue to negotiate HTTP/2 via ALPN when enableHttp2 is true, so this flag can be combined with an SSL connector to serve both HTTP/2 over TLS and h2c from the same server.

Link copied to clipboard

If set to true, enables HTTP/2 protocol for Netty engine

Link copied to clipboard
var httpServerCodec: () -> HttpServerCodec

User-provided function to configure Netty's HttpServerCodec

Link copied to clipboard

The maximum length of the content or each chunk

Link copied to clipboard

The maximum length of all headers. If the sum of the length of each header exceeds this value, a TooLongFrameException will be raised.

Link copied to clipboard

The url limit including query parameters

Link copied to clipboard
Link copied to clipboard

Timeout in seconds for reading requests from client, "0" is infinite.

Link copied to clipboard

Timeout in seconds for sending responses to client

Link copied to clipboard

Number of concurrently running requests from the same http pipeline

Link copied to clipboard

All tasks use a common event group, and call dispatchers wrap this event group without thread pinning. This setting reduces some overhead in scheduling at the expense of the safety provided by segregating the work and call groups.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If set to true, enables TCP keep alive for connections so all dead client connections will be discarded. The timeout period is configured by the system so configure your host accordingly.

Link copied to clipboard

Functions

Link copied to clipboard

Enables the HTTP/3 protocol (over QUIC/UDP) for the Netty engine.

Link copied to clipboard