DartnessServer class Null safety

An interface that defines the methods that a server must implement.

Implementers

Constructors

DartnessServer()

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

Methods

addController(Object controller) → void
Adds a controller and handles the http methods
addMiddleware(Middleware middleware) → void
Adds a middleware in order to listen between an http request and the applications running on it.
getAddress() InternetAddress
Returns the InternetAddress that the server is listening on.
getPort() int
Returns the port that the server is listening on.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
start() Future<void>
Starts the server.
stop({bool force = false}) Future<void>
Permanently stops the server from listening for new connections.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited