deno_std
deno_std copied to clipboard
to-do: make `@std/http/file-server` compatible with `deno serve --parallel`
deno serve --parallel was implemented in https://github.com/denoland/deno/pull/24920. @std/http/file-server should be made to use this sub-command and take advantage of --parallel. Benchmarks would also be great.
Is there a way to detect if the script is executed with deno serve?
We discussed this offline and we'll be creating a @std/http/x-file-server module which will be marked as unstable at least until --parallel is stable.
Talking with David, it might be worth adding a parallel: boolean option to Deno.serve() instead. Then, we could just add a --parallel flag.