Optional
config: ServerConfigGet current log level
Set current log level
The listening server port
Recursively search the folder at
Optional
path: stringThe path
Close the HTTP server
Optional
options: CloseServerOptionsClose server options
Start the HTTP server
Optional
port: number = 0The port. If none or zero spcified, will use a random port
Add path config handler
The path
The route handler config
Optional
options: AddRouteOptionsExtra router options
Same as calling @MoxyServer.on over Object.entries with a prefx
The path prefix to prepend to all routes
Path suffix keyed RouteConfig
Optional
options: AddRouteOptionsExtra router options
Add path handler which removes its self after the first response
The path
The configuration
Optional
options: AddRouteOptionsExtra router options
The internal router