1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00
Commit graph

83 commits

Author SHA1 Message Date
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
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
Rene Schallner
1c9adb6868 use latest facil to support musl builds (thx @mattnite) 2023-07-23 18:09:29 +02:00
Rene Schallner
a132b78b23 build test: run all tests 2023-05-24 01:27:40 +02:00
Rene Schallner
10e9eb6a13 announceybot in zig can send announcements 2023-05-22 21:19:47 +02:00
Rene Schallner
e5e657870e first cut of sendError 2023-05-22 05:17:21 +02:00
Rene Schallner
35144b195e zap.Middleware.EndpointHandler, r.get/setContext() 2023-05-20 03:16:02 +02:00
Rene Schallner
d656452667 MIDDLEWARE support 2023-05-19 02:47:39 +02:00
Rene Schallner
b988454a72 added example for sendFile 2023-05-13 22:30:45 +02:00
Rene Schallner
48e30ca35c feature: SimpleRequest.sendFile(filename) 2023-05-12 23:50:22 +02:00
Rene Schallner
340b1ae3a8 UserPassSession Authentication!!! 2023-05-09 04:35:59 +02:00
Rene Schallner
00291117d8 websockets + example 2023-05-07 05:02:09 +02:00
Rene Schallner
b45a7df668 cookies! 2023-05-06 04:02:03 +02:00
Rene Schallner
d0be271337 Mega update! SimpleHttpRequest got Parameters!
parseBody() : parse form params
parseQuery() : parse query params
getParamCount() : returns number of parsed params
parametersToOwnedStrList() : get params as kv pairs of strings
parametersToOwnedList() : get params as kv list
getParamStr() : get parameter by name
2023-05-06 02:38:35 +02:00
Rene Schallner
d0c59ab008 fixed AuthEndpoint callbacks, BasicAuth logging
AuthEndpoint callbacks now provide pointers to the original
SimpleEndpoint structs, so their fieldParentPtr calls work.
Added extensive debug() logging to BasicAuth with .UserPassword.
2023-05-01 05:55:08 +02:00
Rene Schallner
f5eb3ca888 removed unused code 2023-04-22 23:29:25 +02:00
Rene Schallner
5147aa05d4 tests: build exe 2023-04-22 15:56:11 +02:00
Rene Schallner
b7f3ae06c6 update tests, pkghash 2023-04-22 07:38:44 +02:00