Tesseract22
3c22e9dac5
chore: update to latest zig version
...
zig 0.15 introduced tons of breaking changes in the standard library,
fix them.
2025-08-28 17:47:44 +02:00
Yanis Fourel
283e0d60d0
Add test_recvfile_notype.zig
2025-05-04 20:51:35 +08:00
Yanis Fourel
a7a904aea4
Add test_recvfile.zig
2025-05-04 20:51:35 +08:00
renerocksai
8078b96d3f
add on_uncaught_error behavior to zap.App, add on_error callbacks
...
zap.Endpont.Listener and zap.App now support on_error callbacks:
zap.Endpont.Listener.Settings contains an `on_error` optional callback
field.
zap.App supports those two callbacks:
/// ```zig
/// const MyContext = struct {
/// // You may (optionally) define the following global handlers:
/// pub fn unhandledRequest(_: *MyContext, _: Allocator, _: Request) anyerror!void {}
/// pub fn unhandledError(_: *MyContext, _: Request, _: anyerror) void {}
/// };
/// ```
The `endpoint` example has been updated to showcase `on_error`, and the
new example `app_errors` showcases `Context.unhandledError`.
2025-04-02 09:53:46 +02:00
renerocksai
43c411dcd7
fix router.zig type checking, remove wrk examples from build.zig
2025-03-30 15:03:35 +02:00
renerocksai
b8ca82f0fd
zap.App.Create(Context).Endpoint.Authenticating -> zap.App is READY.
2025-03-30 13:17:32 +02:00
renerocksai
458d6ee071
First zap.App test SUCCESS!!!
2025-03-30 11:28:36 +02:00
Rene Schallner
9a80747cdd
docs, announceybot: switch to using zig fetch
2024-10-14 23:01:09 +02:00
Rene Schallner
3f9c7d0f6b
Merge pull request #105 from SlaktarMicke92/feature/remove-deprecated-path
...
Remove deprecated path
2024-05-26 12:58:05 +02:00
Michael Wendt
8d1574619c
feat: remove deprecated path
...
LazyPath has been deprecated in Zig 0.12 and in
the Zig master this breaks zig build.
2024-05-22 10:10:55 +02:00
Lord Asdi
b19f84cc43
fix: use std.process.getEnvVarOwned instead of std.posix.getenv
...
This allows cross compiling zap on a windows host
2024-05-18 22:07:05 +02:00
Rene Schallner
70c0ef1100
Merge pull request #100 from desttinghim/parseAccept
...
Parse Accept
2024-04-29 03:34:11 +02:00
Rene Schallner
fc7f11a35f
fix docserver invocation from build.zig
2024-04-27 21:08:27 +02:00
Louis Pearson
6d646b62d6
feat: make example for parseAccept
2024-04-24 19:19:11 -06:00
Rene Schallner
6d7d1523cc
Merge pull request #99 from leroycep/link-module-to-facil.io
...
feat: streamline depending on zap by linking facil.io to module
2024-04-24 02:34:44 +02:00
geemili
5f65c650bd
feat: streamline depending on zap by linking facil.io to module
...
This means that all downstream users can simply put:
```zig
exe.root_module.addImport("zap", zap.module("zap"))`
```
in their `build.zig` instead of
```zig
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```
2024-04-23 17:05:25 -06:00
Louis Pearson
3e4c29409e
fix: docserver: server wasm with correct mimetype
2024-04-23 16:13:07 -06:00
Rene Schallner
1e1999802a
Merge branch 'zig-0.12.0'
2024-04-21 14:20:15 +02:00
Rene Schallner
8cfd190fb2
Merge branch 'zig-0.12.0' into zig-0.12.0
2024-04-21 13:59:47 +02:00
Rene Schallner
a74dfb868d
fixed autodoc
2024-03-23 23:49:52 +01:00
Rene Schallner
14fbe5849d
latest docs
2024-03-23 23:44:05 +01:00
Rene Schallner
8cf48ddfc1
zig master: exit, get_env fixes
2024-03-23 22:23:13 +01:00
Andreas Stocker
0f8903c06e
build: remove openssl env var check
2024-03-23 20:05:59 +01:00
Andreas Stocker
0e51d32b34
replace std.os.exit with std.process.exit
2024-03-23 19:56:11 +01:00
Rene Schallner
d51a0b8ca3
make latest patches work on zig master
2024-02-23 20:34:19 +01:00
Froxcey
42e96b4875
Use debug.err and exit 1 for windows fail message
2024-02-23 20:20:38 +01:00
Froxcey
3a50132123
Provide Windows error message
2024-02-23 20:20:11 +01:00
Froxcey
2f174bbcef
Use debug.err and exit 1 for windows fail message
2024-02-19 20:37:08 +08:00
Froxcey
1328bdf7c2
Provide Windows error message
2024-02-13 00:07:32 +08:00
stringnick
508b1a12c0
some refactoring
2024-01-24 13:59:36 +01:00
stringnick
2c2814144e
simple router with clojure
2024-01-24 13:59:36 +01:00
stringnick
5e76e17baf
some refactoring
2024-01-18 21:33:26 +01:00
stringnick
f13160eda6
simple router with clojure
2024-01-13 13:23:54 +01:00
Vemahk
56f687bf19
updated relevant comment
2024-01-07 21:34:58 +01:00
Vemahk
613afaf1af
readd -Dopenssl to zap build. modify readme for instructions how to use it
2024-01-07 21:34:58 +01:00
Vemahk
887cdd8b0e
updated relevant comment
2024-01-05 20:15:32 -06:00
Vemahk
235e9045fc
readd -Dopenssl to zap build.
...
modify readme for instructions how to use it
2024-01-05 20:04:38 -06:00
Rene Schallner
31bf768b96
fix build for latest zig master
2024-01-05 15:37:25 +01:00
Rene Schallner
5eb57387e8
openssl support depend on ZAP_USE_OPENSSL=true env
2024-01-05 13:59:25 +01:00
Rene Schallner
6e5d028d51
openssl support depend on ZAP_USE_OPENSSL=true env
2024-01-05 13:44:01 +01:00
Rene Schallner
c38856d0e1
added zap.Tls, updated https example
2023-12-30 03:13:36 +01:00
Rene Schallner
521b0deaf6
added docs & docserver
2023-12-30 00:51:05 +01:00
Rene Schallner
39b543a45e
for now: skip http in zig build all
2023-12-29 23:39:22 +01:00
Rene Schallner
82323f835e
0.12.0 ready
2023-12-29 23:34:33 +01:00
Rene Schallner
5e789ee87a
added https example
2023-12-29 17:44:25 +01:00
Rene Schallner
62fc16aaac
build.zig changes for conditional openssl support
2023-12-29 15:57:20 +01:00
Rene Schallner
e75e1b06e9
swallowed facil.io into zap
2023-12-22 04:03:32 +01:00
sadbeast
8f5aa17109
Add MustacheLoad to support loading from file
...
According to the facil.io docs
(http://facil.io/0.7.x/fiobj_mustache#fiobj_mustache_new ):
> By setting the filename argument even when the data argument exists,
> it will allow path resolution for partial templates. Otherwise, there
> is no way to know where to find the partial templates.
This will allow partial templates to work.
However, this also introduces a breaking change to the existing
MustacheNew function. This change makes it mirror the C version where it
accepts a MustacheLoadArgs struct instead of just the data. That's also
a handy method to have, so I renamed that to MustacheData...maybe
there's a better name?
2023-09-13 13:22:23 +02:00
Rene Schallner
e55f6181f8
added example for bindataformpost
2023-09-12 18:58:34 +02:00
Rene Schallner
977fa41225
update to latest zig & adapt to new stdlib changes
2023-08-01 15:13:30 +02:00