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.
- Implementers
Constructors
- ApplicationServer(ApplicationOptions options, int identifier, AppChannelBuilder channelBuilder)
- Creates a new server.
Properties
- channel ↔ AppChannel?
-
getter/setter pair
- channelBuilder ↔ AppChannelBuilder
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier ↔ int
-
The unique identifier of this instance.
getter/setter pair
- logger → Logger
-
The logger of this instance
no setter
- options ↔ ApplicationOptions
-
The configuration this instance used to start its channel.
getter/setter pair
- requiresHTTPS → bool
-
Whether or not this server requires an HTTPS listener.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityContext → SecurityContext?
-
no setter
- server ↔ HttpServer?
-
The underlying HttpServer.
getter/setter pair
Methods
-
close(
) → Future - Closes this HTTP server and channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendApplicationEvent(
IsolateEvent event) → void -
start(
{→ Future< })bool> - Starts this instance, allowing it to receive HTTP requests.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited