Picks the ServerAdapter of the app, and makes the ServerSettings
of a port from AppConfig.
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
-
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
Static Methods
-
builtIn(
ServerAdapter? server) → ServerAdapter? -
The adapter that binds with the settings of
AppConfig:server, or the native one when it is null. Null for a CustomServer: its binder sets up its own server. -
serving(
ServerAdapter? server, HttpServer bound) → ServerAdapter -
The adapter that serves
bound, a server thatserveropened. For a CustomServer: the native one for a native server, the adapter of an AdaptedServer (eg. aDoxHttpServer), else the plaindart:ioone. -
settings(
AppConfig config, bool http2, TlsOptions? tls) → ServerSettings -
the settings of a port of
config, with itshttp2andtls -
tls(
TlsOptions? tls) → ServerTls? -
tlsof the config, for an adapter