deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

to-do: make `@std/http/file-server` compatible with `deno serve --parallel`

Open iuioiua opened this issue 1 year ago • 3 comments

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.

iuioiua avatar Aug 15 '24 07:08 iuioiua

Is there a way to detect if the script is executed with deno serve?

kt3k avatar Aug 15 '24 07:08 kt3k

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.

iuioiua avatar Aug 22 '24 07:08 iuioiua

Talking with David, it might be worth adding a parallel: boolean option to Deno.serve() instead. Then, we could just add a --parallel flag.

iuioiua avatar Aug 23 '24 04:08 iuioiua