BuiltInServer class abstract final

The servers that come with Dox. They use the settings of AppConfig.

await Dox().startServer(server: BuiltInServer.ioHttpServer);

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

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

Constants

ioHttpServer → const ServerAdapter
The dart:io HttpServer of the Dart SDK: HTTP/1.1, TLS, WebSocket. No package to add. It has no HTTP/2: http2 in AppConfig stops the start. Of the other settings it uses compress and idleTimeout. reloadCertificate() throws: restart the app.
nativeHttpServer → const ServerAdapter
dox_http_native: Rust owns the sockets. HTTP/1.1, HTTP/2, TLS, WebSocket, native file sending. The default of startServer().