IOServer class final
A running HTTP server with a concrete URL.
- Implemented types
Constructors
- IOServer(HttpServer httpServer, {bool isSecure = false, Logger? logger})
- Creates an instance of IOServer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpServer → HttpServer
-
The underlying HttpServer instance.
final
- isSecure → bool
-
Whether the server is secure.
final
- logger → Logger?
-
The logger of the instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
The URL that the server is listening on.
latefinal
Methods
-
close(
{bool force = false}) → Future< void> -
Closes the server and returns a future that completes when all resources
are released.
override
-
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