ServerSettings class final
The settings of one port. Dox makes them from AppConfig (and the
http2 and tls of the port), and gives them to
ServerAdapter.bind.
Constructors
- ServerSettings({required int maxBodySize, required int maxMultipartSize, required Duration bodyTimeout, required Duration idleTimeout, required int? maxConnections, required bool compress, required int compressLevel, required int maxConcurrentStreams, required int tlsHandshakesPerTick, required int fileThreads, int minBodyRate = 240, Duration minBodyRateGrace = const Duration(seconds: 5), bool http2 = false, ServerTls? tls})
-
const
Properties
- bodyTimeout → Duration
-
the time a client has to send the whole body
final
- compress → bool
-
gzip a response when the client accepts it
final
- compressLevel → int
-
the gzip level, 1 to 12
final
- fileThreads → int
-
the threads that read files for responses
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- http2 → bool
-
the port also speaks HTTP/2
final
- idleTimeout → Duration
-
the time an open connection can wait with no request
final
- maxBodySize → int
-
the largest body in bytes, other than a multipart form
final
- maxConcurrentStreams → int
-
the most open HTTP/2 streams of one connection
final
- maxConnections → int?
-
the most open connections of the port, null for no limit
final
- maxMultipartSize → int
-
the largest multipart form in bytes
final
- minBodyRate → int
-
the least body bytes a second, on average once minBodyRateGrace is
over; a slower client gets 408. 0 turns the check off
final
- minBodyRateGrace → Duration
-
the start of a body that minBodyRate does not check
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tls → ServerTls?
-
the TLS files of the port, null for plain HTTP
final
- tlsHandshakesPerTick → int
-
the most TLS handshakes one event loop turn does
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited