ApplicationServer class
Listens for HTTP requests and delivers them to its ApplicationChannel instance.
An Liquidart 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.
Constructors
- ApplicationServer(Type channelType, ApplicationOptions? options, int identifier)
- Creates a new server.
Properties
- channel ↔ ApplicationChannel?
-
The instance of ApplicationChannel serving requests.
getter/setter pair
- channelType → Type
-
final
- entryPoint ↔ Controller?
-
The cached entrypoint of channel.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hubSink ↔ EventSink?
-
Target for sending messages to other ApplicationChannel.messageHubs.
getter/setter pair
- 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
- server ↔ HttpServer?
-
The underlying HttpServer.
getter/setter pair
Methods
-
close(
) → Future - Closes this HTTP server and channel.
-
didOpen(
) → Future - Invoked when this server becomes ready receive requests.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendApplicationEvent(
dynamic event) → void -
start(
{→ Future }) - 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