Skip to content
Alex edited this page Jul 16, 2022 · 6 revisions

useServer(options)

returns HTTPServer

Methods

  • static(href, path)

a promise that walks the file system, and recursively serves files under path relative to local fs at href on server

  • use(url, (req, res) => cb(req, res)

middleware handler for given url

  • start()

starts the server

  • stop()

stops the server

Clone this wiki locally