News for hackers. Stuff that matters.
Re:Show HN: Running a simple local HTTP server in a web page by etherdream on Saturday October 30, 2021 @09:03AM (#29048444)
Not the same. Disk files can be browsed via HTTP (HTTPS), so you can preview a local static site directly, without tools such as http-server, SimpleHTTPServer, etc.
Re:Show HN: Running a simple local HTTP server in a web page by cdaringe on Saturday October 30, 2021 @12:47PM (#29050167)
Service worker file loader != HTTP server. You are intercepting requests which are usually fulfilled by HTTP, but you are not implementing or interacting with HTTP.

Even so, cool project.

Re:Show HN: Running a simple local HTTP server in a web page by beardyw on Saturday October 30, 2021 @10:57AM (#29049264)
If the files are served via HTTP I am missing it. A page which is fetched via HTTP and then accesses local files is not an HTTP server.

https://en.m.wikipedia.org/wiki/Hypertext_Transfer_Protocol