DartnessServer class abstract interface

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

Implementers

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

addController(DartnessController controller) → void
Adds a controller and handles the http methods
addErrorHandler(DartnessErrorHandler errorHandler) → void
Adds a error handler in order to listen for errors
addInterceptor(DartnessInterceptor interceptor) → void
Adds an interceptor in order to listen before the http request
addMiddleware(DartnessMiddleware 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 nonexistent 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