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

80 commits

Author SHA1 Message Date
Rene Schallner
35144b195e zap.Middleware.EndpointHandler, r.get/setContext() 2023-05-20 03:16:02 +02:00
Rene Schallner
4349f6e25d new release after std.json chanes 2023-05-19 14:47:55 +02:00
Rene Schallner
fe4e3f94a5 comments update 2023-05-19 03:22:31 +02:00
Rene Schallner
d656452667 MIDDLEWARE support 2023-05-19 02:47:39 +02:00
Ed Yu
a641dcc082 add http method PATCH for endpoint listener 2023-05-16 14:58:52 -07:00
Rene Schallner
8067c666b2 on_request fallback for SimpleHttpListener 2023-05-16 03:38:38 +02:00
Rene Schallner
a19acaeb83 better cache-control example f. sendFile 2023-05-14 00:21:25 +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
0f9fbbd677 fixed setHeader debug logging 2023-05-09 05:18:24 +02:00
Rene Schallner
340b1ae3a8 UserPassSession Authentication!!! 2023-05-09 04:35:59 +02:00
Rene Schallner
645db5c8d0 AuthResult is now an enum (was: bool) 2023-05-08 00:06:57 +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
5a942869a9 Basic Auth now accepts Authorization header 2023-05-01 05:58:11 +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
a278842d78 fixed test's http client for latest zig std.http 2023-04-28 21:13: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
b197fb5ff7 housekeeping 2023-04-21 22:18:22 +02:00
Rene Schallner
85076dbe55 cleaned up auth test output 2023-04-17 08:29:30 +02:00
Rene Schallner
0bfd8235f7 test auth: wait for response to be sent
before stopping zap
2023-04-17 04:01:43 +02:00
Rene Schallner
7e2c3b6251 more tests, cleanup 2023-04-16 23:42:08 +02:00
Rene Schallner
bdc9d922e0 implemented, tested Basic auth (Token68, UserPass) 2023-04-16 22:36:27 +02:00
Rene Schallner
1c96e9bf02 automated auth tests via http_client_testrunner 2023-04-16 21:23:47 +02:00
Rene Schallner
21550dd6da added unauthorized callback to auth endpoints 2023-04-16 21:23:32 +02:00
Rene Schallner
6fb7dc8176 BasicAuth/Token68 works + tested 2023-04-16 20:32:17 +02:00
Rene Schallner
56121ced9a endpoint auth : sending unauthorized 2023-04-16 20:18:29 +02:00
Rene Schallner
208a443685 nicer way of creating authenticator, auth endpoint 2023-04-16 20:13:39 +02:00
Rene Schallner
1ffe01dc7a made http_client more universal 2023-04-16 20:06:07 +02:00
Rene Schallner
1fa1d10acf started adding HTTP auth + tests 2023-04-16 06:44:14 +02:00
Rene Schallner
dcf1ea4750 added support for SimpleRequest.getHeader() 2023-04-14 23:32:56 +02:00
Rene Schallner
86f44ac45b fixed MustacheBuild mem leak 2023-03-10 21:16:15 +01:00
Rene Schallner
1fcb11f03a "fixed" release build errors in mustache example 2023-03-10 11:58:51 +01:00
Rene Schallner
615d90b8f4 added errors 2023-03-10 11:43:57 +01:00
Rene Schallner
d4175c08c5 potential throwaway-pre-travel commit 2023-03-10 08:38:33 +01:00
Rene Schallner
503554d649 added facilio logging functions 2023-03-08 15:08:15 +01:00
Rene Schallner
c42e5095d8 added preliminary zap debug logging 2023-03-04 18:37:55 +01:00
Rene Schallner
7383a830d1 added cimport.zig of facilio - for maybe later 2023-02-27 13:40:02 +01:00
Rene Schallner
cd48038ae6 got rid of cImport 2023-02-27 13:33:19 +01:00
Rene Schallner
21c4fa12d3 mustache cleanup 2023-02-27 02:15:29 +01:00
Rene Schallner
9557bebf0b mustache rendering works - cleanup needed 2023-02-27 00:56:29 +01:00
Rene Schallner
8273b56f2f mustache progress 2023-02-26 16:17:54 +01:00
Rene Schallner
087b000745 mustache progress 2023-02-15 16:55:07 +01:00
Quetzal Bradley
4427286969 Make ContentType, HttpParam, and ListenError public 2023-02-14 03:27:01 +00:00
Rene Schallner
9189c99389 removed git submodule in favor of zig package 2023-02-13 03:41:53 +01:00
Rene Schallner
0b368f14dd Added setContentTypeFromPath() 2023-01-29 16:27:06 +01:00
Rene Schallner
a5d8554e3b added http status code enum from apple_pie 2023-01-21 09:58:29 +01:00