dartvel_backend library

Classes

Body
CorsOptions
CORS options.
DVBackendCron
Annotation for a Backend Cron Job
DVBackendFunction
Annotation for a Dartvel Backend Function
DVIpAddress
An IPv4 or IPv6 address.
DVPeerAddress
The address and, when known, the port at the other end of a connection.
DVRouteBodyLimit
A route as the native server needs to know it: its method, its pattern, and the largest body it reads.
Headers
Request
Res
Response
Router
Routes a request to the first route whose method and pattern match it.
ServerHandle
Server handle for builds where the native FFI server is not linked.
TlsConfig
TLS configuration.
URLPattern

Functions

embedNativeServerLibrary(List<int> bytes) → void
Gives this process the native server library as bytes. Nothing to load where there is no FFI, so this only records that the call was made.
serve(Future<Response> handler(Request), {String host = '127.0.0.1', int port = 8080, TlsConfig? tls, bool h2c = false, CorsOptions? cors, String? staticDir, String? spaRoot, bool compression = true, Duration requestTimeout = const Duration(seconds: 60), int maxBodyBytes = 1024 * 1024, Iterable<DVRouteBodyLimit> routeBodyLimits = const <DVRouteBodyLimit>[]}) → Future<ServerHandle>
Serves the handler configuration.