Bob Farrell
8dd09a8399
Update checklist
2024-05-05 20:47:00 +01:00
Bob Farrell
1ea3f6c4ff
Fix session nonce re-use
...
Use a new secure-random nonce for each session encryption.
Many thanks to @Trundle for writing [this gist](https://gist.github.com/Trundle/76c0d8f80999617f4d8373c03f86391a )
highlighting the severity of this issue.
2024-05-01 20:51:39 +01:00
Bob Farrell
3032f56902
Add Zine link to README
2024-03-17 13:17:46 +00:00
Bob Farrell
b4937d34a1
Add tokamak to related projects
2024-03-16 09:49:36 +00:00
Bob Farrell
d855b9f703
Implement MIME type inference
...
When serving content from `public/`, use MIME type lookup to provide an
appropriate content-type header.
MIME types borrowed from:
https://mimetype.io/all-types
https://github.com/patrickmccallum/mimetype-io/blob/master/src/mimeData.json
2024-02-26 22:38:43 +00:00
Bob Farrell
be85c13369
Provide interface for adding response headers
2024-02-25 14:20:22 +00:00
Bob Farrell
216b86c235
JSON and query param parsing/SSG params
...
Implement `jetzig.http.Request.params()` which parses either a JSON
request body or a query param string into a `jetzig.data.Value`.
Allow configuring params for static site generation - configure an array
of params for each endpoint which is then parsed at build time and a
separate JSON and HTML output is generated for each by invoking the
relevant view function and passing in resource ID/params. Params are
stored in generated `routes.zig` for route matching at run time.
2024-02-25 09:25:00 +00:00
Bob Farrell
8c5ffcb9f6
Fix logo path
2024-02-17 16:02:52 +00:00
Bob Farrell
66f6e13741
Update README
...
Update checklist/contributors
2024-02-17 15:58:33 +00:00
Bob Farrell
6d487392a8
Add z1fire to contributors
...
Discord admin and public relations officer. :)
2024-02-15 22:41:18 +00:00
Bob Farrell
bdb813c521
Dump stack trace on internal server error
...
Provide stack trace for debugging runtime errors in debug builds
2024-02-15 21:40:21 +00:00
Bob Farrell
7958480ff7
Provide abstraction for headers
...
Basic abstraction wrapping existing std.http.Headers to provide a stable
interface.
2024-02-15 20:01:07 +00:00
Bob Farrell
5623be3e65
Add link to website to README
2024-02-04 15:32:23 +00:00
Bob Farrell
ed1ba9546f
Remove unneeded title
2024-02-04 14:05:55 +00:00
Bob Farrell
f24a959ef3
Update README, add logo & discord link
2024-02-04 14:05:18 +00:00
Bob Farrell
50f518806a
Minor tweaks to example code
2024-01-21 22:31:33 +00:00
Bob Farrell
b77ea5fd51
Static content, init/setup tweaks, some cleanup
2024-01-21 20:28:27 +00:00
Bob Farrell
f8502be587
Log error to output and add to data
2024-01-20 19:04:56 +00:00
Bob Farrell
cb52ccffb9
Error handling
2024-01-18 21:05:17 +00:00
Bob Farrell
65bb626bbc
Sessions
2024-01-17 23:01:05 +00:00
Bob Farrell
7748b25e64
Templating
2024-01-15 11:05:17 +00:00