Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Lloyd Brookes edited this pageJul 6, 2021 ·17 revisions

Please see the lws API docs. The local-web-server programmatic API is identical to lws with two differences:

  1. local-web-serverhas a default middleware stack while lws does not.
  2. local-web-serveradds itself to the plugin module search path, meaning when you type--stack lws-static it will first search the current working directory then the local-web-server installation for thelws-static module.

Trival example:

importLocalWebServerfrom'local-web-server'constws=awaitLocalWebServer.create({port:9000,directory:'public'})/* make requests */// curl http://localhost:9000/* shut down */ws.server.close()

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp