Optionalconfig: ServerConfigGet current log level
Set current log level
The listening server port
Recursively search the folder at
Optionalpath: stringThe path
Close the HTTP server
Optionaloptions: CloseServerOptionsClose server options
Start the HTTP server
Optionalport: number = 0The port. If none or zero spcified, will use a random port
Add path config handler
The path
The route handler config
Optionaloptions: 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
Optionaloptions: AddRouteOptionsExtra router options
Add path handler which removes its self after the first response
The path
The configuration
Optionaloptions: AddRouteOptionsExtra router options
The internal router