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
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
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
6e5d028d51
openssl support depend on ZAP_USE_OPENSSL=true env
2024-01-05 13:44:01 +01:00
Rene Schallner
39b543a45e
for now: skip http in zig build all
2023-12-29 23:39:22 +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
Rene Schallner
7c71fd9815
build.zig: rename exe_tests -> auth_tests
2023-04-17 04:10:57 +02:00
Rene Schallner
19880fad3e
added endpoint_auth example, fixed doc
2023-04-16 23:53:14 +02:00
Rene Schallner
f88fdc72f6
cleaned up build.zig
2023-04-16 22:45:52 +02:00
Rene Schallner
1c96e9bf02
automated auth tests via http_client_testrunner
2023-04-16 21:23:47 +02:00
Rene Schallner
1fa1d10acf
started adding HTTP auth + tests
2023-04-16 06:44:14 +02:00
Rene Schallner
663a809f90
attempt to add facilio lib as static lib to zap
2023-02-27 12:07:01 +01:00
Rene Schallner
8273b56f2f
mustache progress
2023-02-26 16:17:54 +01:00
Rene Schallner
ae06356c78
depend on zig pkg man friendly fork of facil.io
2023-02-12 16:58:33 +01:00
Quetzal Bradley
cd32fa6bc9
export zap module
2023-02-12 10:37:40 +00:00
Quetzal Bradley
f9119c119a
Update build.zig with breaking changes from zig master
2023-02-12 06:56:13 +00:00
Rene Schallner
3af5b7b939
no install of git hook if checked out as submodule
2023-01-19 12:42:41 +01:00
Rene Schallner
720c0f8bfe
renamed endpoints example to endpoint
2023-01-18 14:35:52 +01:00
Rene Schallner
4ccd8d8620
build.zig adds pre-commit hook
2023-01-16 01:48:57 +01:00
Rene Schallner
3db2263383
wrk results
2023-01-15 05:19:19 +01:00
Rene Schallner
80185931c5
cleanup
2023-01-14 16:44:40 +01:00
Rene Schallner
9186bb58ec
endpoint example: the beginnings
2023-01-14 16:13:14 +01:00
Rene Schallner
2f4a29505c
build.zig : addZap for use in other projects
2023-01-13 17:49:42 +01:00
Rene Schallner
ad0b4ef764
updated build.zig to make it more generic
2023-01-13 17:33:23 +01:00
Rene Schallner
0a29e52764
added json example
2023-01-13 16:27:22 +01:00
Rene Schallner
102c1ac12b
improv
2023-01-13 04:38:58 +01:00