SerinusFactory class final

The SerinusFactory class is used to create a new instance of the SerinusApplication class.

Constructors

SerinusFactory()
The SerinusFactory constructor is used to create a new instance of the SerinusFactory class.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createApplication({required Module entrypoint, String host = 'localhost', int port = 3000, Set<LogLevel>? logLevels, LoggerService? logger, String poweredByHeader = 'Powered by Serinus', SecurityContext? securityContext, ModelProvider? modelProvider, bool enableCompression = true, bool rawBody = false, NotFoundHandler? notFoundHandler, int bodySizeLimit = kDefaultMaxBodySize}) Future<SerinusApplication>
The createApplication method is used to create a new instance of the SerinusApplication class.
createMicroservice({required Module entrypoint, required TransportAdapter<dynamic, TransportOptions> transport, Set<LogLevel>? logLevels, LoggerService? logger, ModelProvider? modelProvider}) Future<MicroserviceApplication>
The createMicroservice method is used to create a new instance of the MicroserviceApplication class.
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