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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
server HttpServer
The underlying HttpServer.
final
url Uri
The URL of the server. [...]
read-only, override

Methods

close() Future
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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

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