ServerConfigurations class

The server configurations

Constructors

ServerConfigurations({String host = 'localhost', SecurityContext? securityContext, int port = 8080, bool? automaticDecodeBodyAsJson = true, required String secretKey, TokenServiceConfigurations? tokenServiceConfigurations, bool? enableLogging = true, bool? enableRequestsLogging, bool? enableAuthorization = true, bool isDebugMode = true, Object? responseJsonEncoder(Object? obj)?, int? webSocketPort, Duration? webSockectsPingInterval})
Create an instance of ServerConfigurations

Properties

automaticDecodeBodyAsJson bool?
final
enableAuthorization bool?
Weather to initialize the authorization + token service.
final
enableLogging bool?
Weather to enable logging.
final
enableRequestsLogging bool?
Weather to enable http connections logging.
final
hashCode int
The hash code for this object.
no setteroverride
host String
The main host address of this server app.
final
isDebugMode bool
Weather the app is running in debug mode.
final
port int
The port of this server app.
final
responseJsonEncoder → (Object? Function(Object? obj)?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String
The secret key of this server app.
final
securityContext SecurityContext?
final
tokenServiceConfigurations TokenServiceConfigurations?
The token service configurations.
getter/setter pair
webSockectsPingInterval Duration?
final
webSocketPort int?
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.
override