Server constructor
Server({
- required Serverpod serverpod,
- required String serverId,
- required int port,
- required SerializationManager serializationManager,
- required DatabasePoolManager databaseConfig,
- required Map<
String, String> passwords, - required String runMode,
- AuthenticationHandler? authenticationHandler,
- String? name,
- required Caches caches,
- SecurityContext? securityContext,
- List<
String> ? whitelistedExternalCalls, - required EndpointDispatch endpoints,
- required Map<
String, dynamic> httpResponseHeaders, - required Map<
String, dynamic> httpOptionsResponseHeaders,
Creates a new Server object.
Implementation
Server({
required this.serverpod,
required this.serverId,
required this.port,
required this.serializationManager,
required this.databaseConfig,
required this.passwords,
required this.runMode,
this.authenticationHandler,
String? name,
required this.caches,
this.securityContext,
this.whitelistedExternalCalls,
required this.endpoints,
required this.httpResponseHeaders,
required this.httpOptionsResponseHeaders,
}) : name = name ?? 'Server $serverId';