Server class abstract interface

A running HTTP server with a concrete URL.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
logger → Logger?
The logger of the instance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
The URL that the server is listening on.
no setter

Methods

close({bool force = false}) Future<void>
Closes the server and returns a future that completes when all resources are released.
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(Handler handler, Object address, int port, {SecurityContext? securityContext, int backlog = 0, bool v6Only = false, bool requestClientCertificate = false, bool shared = false, Logger? logger}) Future<Server>
Binds a handler to an address and port.