settings static method
the settings of a port of config, with its http2 and tls
Implementation
static ServerSettings settings(
AppConfig config,
bool http2,
TlsOptions? tls,
) => ServerSettings(
maxBodySize: config.maxBodySize,
maxMultipartSize: config.maxMultipartSize,
bodyTimeout: config.bodyTimeout,
idleTimeout: config.idleTimeout,
maxConnections: config.maxConnections,
compress: config.compress,
compressLevel: config.compressLevel,
maxConcurrentStreams: config.maxConcurrentStreams,
tlsHandshakesPerTick: config.tlsHandshakesPerTick,
fileThreads: config.fileThreads,
minBodyRate: config.minBodyRate,
minBodyRateGrace: config.minBodyRateGrace,
http2: http2,
tls: ServerAdapters.tls(tls),
);