ServerConfig class

Main server configuration.

Constructors

ServerConfig.new({required RateLimitConfig rateLimit, required CorsConfig cors, required int maxBodySize, required bool enableHttps, required List<String> trustedProxies})
const
ServerConfig.development()
Development server configuration.
factory
ServerConfig.production()
Production server configuration.
factory

Properties

cors CorsConfig
final
enableHttps bool
final
hashCode int
The hash code for this object.
no setterinherited
maxBodySize int
final
rateLimit RateLimitConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trustedProxies List<String>
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