IOServer class

A Server backed by a dart:io HttpServer.

Implemented types

Constructors

IOServer(HttpServer server)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server HttpServer
The underlying HttpServer.
final
url Uri
The URL of the server.
no setteroverride

Methods

close() Future<void>
Closes the server and returns a Future that completes when all resources are released.
override
mount(Handler handler) → void
Mounts handler as the base handler for this server.
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

Static Methods

bind(Object address, int port, {int? backlog}) Future<IOServer>
Calls HttpServer.bind and wraps the result in an IOServer.