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

84 commits

Author SHA1 Message Date
Rene Schallner
28b90c7b00 Endpoint example: /stop endpoint & leak detection 2023-07-03 15:54:26 +02:00
Ed Yu
22d4b80cb9 Update to use the new alignCast where the alignOf is not needed anymore 2023-06-26 20:11:34 -07:00
Ed Yu
c047d9dc9b Revert Context changes in middleware_with_endpoint by fixing middleware MixContexts 2023-06-22 11:57:55 -07:00
Ed Yu
71fb5d945e Update middleware_with_endpoint example with direct context 2023-06-21 20:44:05 -07:00
Ed Yu
cc0680d6e3 Update middleware example with direct context 2023-06-21 15:21:42 -07:00
Ed Yu
9c66dd4deb Update to new json parser api changes 2023-06-20 10:21:48 -07:00
Rene Schallner
2885b2642b Update to latest facil.io patch (cookie path) 2023-05-30 10:42:51 +02:00
Rene Schallner
d1da4ec3bc fix: setCookie in ReleaseXXX mode, spelling COOKIE 2023-05-29 18:19:25 +02:00
Rene Schallner
55f2bc427f UserPassSessionAuth: ephermal session token
generated token will be modulated by timestamp in nanoseconds.
2023-05-24 12:02:53 +02:00
Rene Schallner
48b399e056 fix mem leaks in UserPassSessionAuth 2023-05-24 01:28:04 +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
Ed Yu
3fb6a65e48 update endpoint example to the new json api 2023-05-18 20:54:16 -07:00
Rene Schallner
6f7e2f89fb fix comments 2023-05-19 03:07:56 +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
c10b35777b fixed example: only have 1 worker! 2023-05-09 05:26:09 +02:00
Rene Schallner
6e081d8672 lil example's logging update 2023-05-09 05:12:30 +02:00
Rene Schallner
340b1ae3a8 UserPassSession Authentication!!! 2023-05-09 04:35:59 +02:00
Rene Schallner
0251a9cbc5 improved websocket chat example 2023-05-07 16:14:28 +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
b197fb5ff7 housekeeping 2023-04-21 22:18:22 +02:00
Rene Schallner
dfaadf3140 Enpoint example: from singleton to @fieldParentPtr 2023-04-18 21:02:43 +02:00
Rene Schallner
19880fad3e added endpoint_auth example, fixed doc 2023-04-16 23:53:14 +02:00
Rene Schallner
dcf1ea4750 added support for SimpleRequest.getHeader() 2023-04-14 23:32:56 +02: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
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
7c03a16245 mustache example cleanup 2023-02-27 02:26:00 +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
0c7b09566b fix #4 (wrong use of std.mem.span -> examples don't build) 2023-02-14 09:26:02 +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
Rene Schallner
5b105f508e endpoint example: saner count on add 2023-01-20 21:33:38 +01:00
Rene Schallner
b265b4315d removed unneccesary code 2023-01-20 20:50:40 +01:00
Rene Schallner
01df5ce456 more endpoint comments 2023-01-20 20:41:54 +01:00
Rene Schallner
cdb7308a23 endpoint example: added comment: race cond fixed 2023-01-20 20:35:10 +01:00
Rene Schallner
e2e11c8976 fixed endpoint example: jsonification race condition 2023-01-20 20:25:36 +01:00
Rene Schallner
27f3cb8628 zap: max_body_size, endpoint: mem buffer correction 2023-01-19 21:49:02 +01:00
Rene Schallner
d258588454 cosmetics: longer line in endpoint example 2023-01-19 21:28:07 +01:00
Rene Schallner
172ddd3e0f Endpoint better json handling 2023-01-19 21:24:22 +01:00
Rene Schallner
d5ee2f11ef endpoint example mem improvement 2023-01-19 20:54:12 +01:00
Rene Schallner
1f8e8ac0e4 saner mem management, thread-safety 2023-01-19 20:34:47 +01:00