ApplicationServer class

Listens for HTTP requests and delivers them to its ApplicationChannel instance.

An Aqueduct application creates instances of this type to pair an HTTP server and an instance of an ApplicationChannel subclass. Instances are created by Application and shouldn't be created otherwise.


ApplicationServer(ClassMirror channelType, ApplicationOptions options, int identifier)
Creates a new server that sending requests to channelType. [...]


channel ApplicationChannel
The instance of ApplicationChannel serving requests.
read / write
entryPoint Controller
The cached entrypoint of channel.
read / write
hubSink ↔ EventSink
Target for sending messages to other ApplicationChannel.messageHubs. [...]
read / write
identifier ↔ int
The unique identifier of this instance. [...]
read / write
logger Logger
The logger of this instance
options ApplicationOptions
The configuration this instance used to start its channel.
read / write
requiresHTTPS → bool
Whether or not this server requires an HTTPS listener.
server ↔ HttpServer
The underlying HttpServer.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


close() → Future
Closes this HTTP server and channel.
didOpen() → Future
Invoked when this server becomes ready receive requests. [...]
sendApplicationEvent(dynamic event) → void
start({bool shareHttpServer: false }) → Future
Starts this instance, allowing it to receive HTTP requests. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.