ZidanZ
Denoβ€’3y agoβ€’
36 replies
Zidan

Serving multiple static files to an HTTP request

If a client sends a request for an array of static files names like so.
["component01.js", "component01.css", "component02.js", "component02.css"]

Using a Deno.serve server, is it possible to serve all files in response to that one request, instead of having the client request them one by one?
Would I need something like HTTP/2 or HTTP/3? And if so, are any of those supported in Deno?
Was this page helpful?