Bob Farrell
a5688754b0
WIP
2024-11-08 20:42:54 +00:00
Bob Farrell
eac80226ee
WIP
2024-11-07 22:18:18 +00:00
Bob Farrell
cae8034b36
WIP
2024-11-06 19:36:58 +00:00
Bob Farrell
f23f718be6
WIP
2024-11-06 19:35:00 +00:00
Bob Farrell
06564d50d5
WIP
2024-11-06 18:39:35 +00:00
Bob Farrell
51fa6bd424
WIP
2024-11-06 18:39:35 +00:00
Bob Farrell
bbdcc94084
WIP
2024-11-06 18:39:35 +00:00
Bob Farrell
c62c93a397
WIP
2024-11-06 18:39:35 +00:00
Bob Farrell
c2ee5c2926
WIP
2024-11-06 18:39:35 +00:00
Bob Farrell
b73cb3c697
WIP
2024-11-06 18:39:34 +00:00
Bob Farrell
0f22db6d1b
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
defd4b8b87
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
f32c5227c6
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
e9c66f7a57
WIP
...
Actions:
+
Motivation:
+
2024-11-06 18:39:12 +00:00
Bob Farrell
3f0731baa4
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
4707fdf744
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
60de7ac508
WIP
2024-11-06 18:39:12 +00:00
Bob Farrell
3a5c2f888a
WIP
2024-11-06 18:39:10 +00:00
Bob Farrell
7fe559cfae
WIP
2024-11-06 18:38:39 +00:00
Bob Farrell
2639ee76aa
WIP
2024-11-06 18:38:39 +00:00
Bob Farrell
4025145867
WIP
2024-11-06 18:38:39 +00:00
Bob Farrell
c7b79f144a
Fixes for https://github.com/ziglang/zig/pull/21817
2024-11-06 08:44:07 +00:00
IbrahimOuhamou
d5078cc617
added 'session.save()' inside 'session.remove()' thanks to Allah
2024-11-03 13:08:43 +01:00
IbrahimOuhamou
cea2781391
updated zmpl and added session.remove() thanks to Allah
2024-11-03 11:39:03 +01:00
Bob Farrell
f971f18a60
Global data
...
Define `pub const Global = SomeType` at top level in `src/main.zig`,
then create a pointer to `SomeType` and pass to `app.start`:
```
app.start(routes, .{ .global = global });
```
Then access in a view as `request.global`.
2024-10-28 09:07:06 +00:00
Bob Farrell
9e4a81aa19
Closes #105 : Configure SMTP from environment variables
...
Fall back to hardcoded values if each `JETZIG_SMTP_*` variable is not
present.
2024-10-17 22:09:04 +01:00
Bob Farrell
9b2d6274ff
Update http.zig
...
Resolves overflow vuln.
2024-09-27 18:27:22 +01:00
Bob Farrell
15b0fa1af9
Latest Zig master compatibility
2024-08-30 18:43:12 +01:00
Bob Farrell
e98c5ec3df
Update http.zig
...
Refactor routes generation to standalone exe (fixes some build-time vs.
run-time issues).
2024-08-24 11:18:08 +01:00
Bob Farrell
32da79ca21
Fixes #96 : Trim module name properly
2024-08-15 18:02:55 +01:00
Bob Farrell
f0c7475386
Provide default value for Route.formats
2024-08-10 18:39:28 +01:00
Bob Farrell
1406447f24
Implement response format constraints
...
Define `pub const formats` in a view to specify which formats are
available. Use this to e.g. disable JSON responses.
2024-08-04 16:06:39 +01:00
Bob Farrell
9971cde875
Close #89 : Implement file upload support
...
Use `request.file("form-field-name")` to try to find a multipart-encoded
form value for the given name. Returns `jetzig.http.File` if a match is
found which provides `content` (uploaded file content) and `filename`
(filename as passed by browser).
2024-06-19 20:47:05 +01:00
Dustin
33e76d74ad
Fix nested paths in public folder on windows
2024-06-11 16:27:24 -06:00
Dustin
6ee43f7c9f
Fix nested paths in public folder on windows
2024-06-11 16:08:00 -06:00
Bob Farrell
3882eba2f3
Clean up static params and init script
2024-06-09 11:13:33 +01:00
Bob Farrell
e30d340a7a
Embed static routes in compiled exe
...
Remove need for static routes output files to be copied/generated in
deployment.
2024-06-08 19:37:41 +01:00
Bob Farrell
2d921a1c27
Add jetzig routes
command
...
Output all current routes. Invokes `zig build jetzig:routes`.
2024-06-05 21:26:23 +01:00
rhues
cea262e066
Fixed issue 52 by using only native Windows colors on Windows. This should fix log colorization for all Windows terminals. Note: when Zig 0.12 support is no longer needed, a much more elegant solution is possible that allows ANSI colors on Windows. This fix works with Zig 0.12 and up.
2024-06-04 08:17:14 -07:00
Bob Farrell
a46bc0ed19
Test helpers
...
Add `jetzig test` command which runs build step `jetzig:test`.
Add `jetzig.testing` namespace which provides test helpers and a test
app.
Add tests to view generator (i.e. include tests for generated routes).
2024-06-03 21:56:32 +01:00
Bob Farrell
b7af4a396e
Fix missing public declaration
2024-06-01 18:11:44 +01:00
Bob Farrell
b304a3509b
Windows compatibility fixes
2024-06-01 18:05:01 +01:00
bobf
a6c3e77ddc
Merge pull request #82 from drsneed/main
...
Added cookie options
2024-06-01 17:23:58 +01:00
Bob Farrell
3875ffbdfb
Remove allocs in Headers.getAll()
...
Provide `Headers.getAllIterator()` to iterate over matching headers, use
this to iterate through `Accept-Encoding` headers in
CompressionMiddleware.
2024-06-01 17:09:49 +01:00
Bob Farrell
7339641401
Refactoring
2024-06-01 16:20:16 +01:00
Froxcey
f538b0ddce
Fix Compression Middleware
...
Checks "Accept-Encoding" header, add deflate encoding, rename the
middleware, and avoid unnecessary encoding.
2024-06-01 16:17:45 +01:00
Froxcey
ae44b1b21a
Add gzip middleware
2024-06-01 16:17:45 +01:00
Bob Farrell
35a2b8a006
Refactor to reduce allocs, add tests for cookie flags
2024-06-01 15:25:24 +01:00
Dustin
02fd62b415
Removed unnecessary allocation
2024-05-30 17:41:02 -06:00
Dustin
5a6ea71ab9
Added cookie options
2024-05-30 16:46:18 -06:00