ServerAdapters class abstract final

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 that server opened. For a CustomServer: the native one for a native server, the adapter of an AdaptedServer (eg. a DoxHttpServer), else the plain dart:io one.
settings(AppConfig config, bool http2, TlsOptions? tls) → ServerSettings
the settings of a port of config, with its http2 and tls
tls(TlsOptions? tls) → ServerTls?
tls of the config, for an adapter