2 ms·
I'm not a C expert. Trying to understand if this offer other novel techniques. So in Go we already have this capability in http.FileServer(http.Dir("stati
by kureikain 8y ago
I'm not a C expert. Trying to understand if this offer other novel techniques.
So in Go we already have this capability in
http.FileServer(http.Dir("static"))
Also, in Rust, actix web has similar built-in function:
https://github.com/actix/actix-website/blob/master/content/docs/static-files.md https://github.com/actix/actix-website/blob/master/content/d...
Again, I'm a noob in C but I really want to understand state of the art in file serving.
I imagine it isn't as easy as it's for thing like server a big file by reading byte by byte and write the response. It has to have some tricks here which I don't know.