ServeWithMultiIsolates class

Serve with multi-isolates

Constructors

ServeWithMultiIsolates({required FutureOr<Response> handler(Request), required Object address, required int port, SecurityContext? securityContext, int? backlog, String? poweredByHeader, FutureOr<void> onStart(HttpServer)?, FutureOr<void> onClose(HttpServer)?})
construct

Properties

address Object
address
final
backlog int?
backlog
final
handler FutureOr<Response> Function(Request)
handler
final
hashCode int
The hash code for this object.
no setterinherited
onClose FutureOr<void> Function(HttpServer)?
on close server hook.
final
onStart FutureOr<void> Function(HttpServer)?
on start server hook.
final
port int
port
final
poweredByHeader String?
powerd by header
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext?
security context
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serve({int? numberOfIsolates}) Future<void>
Start serve with numberOfIsolates (default: numberOfProcessors).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited