Luukdegram / apple_pie

Basic HTTP server implementation in Zig
MIT License
163 stars 21 forks source link

add Last-Modified file header #83

Closed bootradev closed 2 years ago

bootradev commented 2 years ago

Hello there!

This PR is to add the 'Last-Modified' header to the files served to the client.

I implemented this in order to support hot-reloading wasm files I compile from Zig.

Please let me know if you have any feedback on code style / organization, I kinda just dumped it all in serveFile.

bootradev commented 2 years ago

Would it be possible to merge the change as-is, so I could work on the custom formatter in a separate branch? (I'd be willing to take on that task)

Luukdegram commented 2 years ago

Sounds great! Done.