aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2020-01-11fix: remove FBA for headersHEADmasterLibravatar Terin Stock1-5/+6
This changeset replaces the `allocPrint` and `FixedBufferAllocator` with `bufPrint`, which directly accepts the static buffer.
2020-01-10architecture portable version of sendfileLibravatar Terin Stock1-16/+50
Removes the custom thunking for `sendfile(2)` in favor of using the standard library yscall function and constants. This allows ziggetty to be portable across architectures. Where available, the 64-bit compatible `sendfile64(2)` is called. This changeset also wraps the sendfile implementation to turn errno-style errors into Zig errors.
2020-01-09initial version of ziggettyLibravatar Terin Stock3-0/+467
An initial version of ziggetty, the simple (and currently _too_ simple) HTTP server for static websites. Ziggetty currently responds to all requests with the contents of index.html from the current directory. While this is slightly less than ideal, the basics of a forking server using `sendfile(2)`.
2020-01-09ziggetty: simple static HTTP serverLibravatar Terin Stock0-0/+0