ServerHolder class

Constructors

ServerHolder(RequestProcessor _requestProcessor, {bool? cancelOnError, dynamic onDone()?, dynamic onError()?, Processor? onPathNotFound, bool serveDocs = true, String docsEndpoint = '/docs'})

Properties

docsEndpoint → String
final
hashCode → int
The hash code for this object.
no setterinherited
requestProcessor → RequestProcessor
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serveDocs → bool
final

Methods

addGlobalMiddleware(Processor processor, {String? pathTemplate, HttpMethod method = HttpMethods.all, String? signature}) → ServerHolder
addGlobalRawMiddleWare(Middleware middleware) → ServerHolder
bind(InternetAddress address, int port, {int backlog = 0, bool v6Only = false, bool shared = false, String afterServerMessage(String protocol, String address, int port)?}) → Future<HttpServer>
bindSecure(InternetAddress address, int port, SecurityContext context, {int backlog = 0, bool v6Only = false, bool requestClientCertificate = false, bool shared = false, String afterServerMessage(String protocol, String address, int port)?}) → Future<HttpServer>
closeAllRunningServers() → Future<void>
generateDoc() → void
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