ApplicationServer class Null safety
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.
read / write
- channelType → Type
-
final
- entryPoint ↔ Controller?
-
The cached entrypoint of channel.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- 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
read-only
- options ↔ ApplicationOptions?
-
The configuration this instance used to start its channel.
read / write
- requiresHTTPS → bool
-
Whether or not this server requires an HTTPS listener.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- server ↔ HttpServer?
-
The underlying HttpServer.
read / write
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 non-existent 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