DoxServer class

Constructors

DoxServer()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
httpServer ↔ HttpServer
the http server. a NativeHttpServer (dox_http_native) or the dart:io one. both have the same HttpServer API.
getter/setter pair
responseHandler ↔ ResponseHandlerInterface?
set responseHandler
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({bool force = false}) → Future<void>
close http server
listen(int port, {Function? onError, int? isolateId}) → Future<HttpServer>
listen the request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setResponseHandler(ResponseHandlerInterface? handler) → void
set response handler
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

usesNative({bool log = false}) → bool
true when listen will use the native server (dox_http_native). log prints why it does not, once.