IoServer class final
Binds an adapter-neutral Odroe handler to dart:io.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
bind(
ServerHandler handler, {ServerErrorHandler? onError, Object? address, int port = 3000, int backlog = 0, Directory? publicDirectory, bool compressStaticAssets = true, File? developmentProxyOriginFile}) → Future< HttpServer> -
Starts an HTTP server that forwards requests to
handler. -
close(
HttpServer server, {bool force = false}) → Future< void> -
Stops
serverand waits for every accepted request task to settle.