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

39 commits

Author SHA1 Message Date
renerocksai
3a2246ba50
cleanup unused params where applicable (ie non-instructive) 2025-03-30 19:58:22 +02:00
renerocksai
4c59132a08
added header to example main source files showing how to build & run 2025-03-30 19:40:08 +02:00
renerocksai
cc6d55fbf7
Improved & generalized checkEndpoint functions
E.g. return type's error set does not need to be `anyerror` anymore.
2025-03-30 19:37:40 +02:00
Rene Schallner
3aaa7fcc24 removed Self and @This() as much as possible 2025-03-21 18:57:33 +01:00
renerocksai
fcce4517de
introduced error union to request fn return type 2025-03-16 20:16:14 +01:00
renerocksai
ab42f971a0
remove usingnamespace 2025-03-16 16:17:42 +01:00
renerocksai
8e80eecc3e
endpoint simplification 2025-03-16 04:45:31 +01:00
Rene Schallner
740ddab2a1
Merge branch 'zig-0.12.0' into zig-0.12.0 2024-04-21 13:54:51 +02:00
Tobias Simetsreiter
3f7492260d zig 0.12.0-dev.3561+f45ba7d0c: remove type argument from fieldParentPtr 2024-04-07 18:21:49 +02:00
dweiller
43b6993942 update for @fieldParentPointer RLS change 2024-04-05 15:13:44 +11:00
Rene Schallner
07c74e757d Refactored request, auth, endpoint:
- zap.Request : refactored into its own file, along with supporting
  types and functions (e.g. http params related)
    - added setContentTypeFromFilename thx @hauleth.
- zap.Auth : zap.Auth.Basic, zap.Auth.BearerSingle, ...
- zap.Endpoint : zap.Endpoint, zap.Endpoint.Authenticating
2024-01-10 15:05:53 +01:00
Rene Schallner
214cfc5dee example comments 2024-01-09 16:01:53 +01:00
renerocksai
3d651229f8 API cleanup #1
--------------

- EndpointListener.register() // was: addEndpoint
- no more Simple
- getEndpoint -> endpoint()
2024-01-08 15:50:46 +01:00
stringnick
1e849d2b05 http method options support 2023-12-31 01:20:54 +01:00
Rene Schallner
82323f835e 0.12.0 ready 2023-12-29 23:34:33 +01:00
Rene Schallner
28b90c7b00 Endpoint example: /stop endpoint & leak detection 2023-07-03 15:54:26 +02:00
Ed Yu
9c66dd4deb Update to new json parser api changes 2023-06-20 10:21:48 -07:00
Ed Yu
3fb6a65e48 update endpoint example to the new json api 2023-05-18 20:54:16 -07: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
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
615d90b8f4 added errors 2023-03-10 11:43:57 +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
Rene Schallner
50c64e0f90 fixed users.zig 2023-01-19 16:22:23 +01:00
Rene Schallner
218b556d30 made endpoint's user list thread-safe 2023-01-18 15:03:21 +01:00
Rene Schallner
720c0f8bfe renamed endpoints example to endpoint 2023-01-18 14:35:52 +01:00
Rene Schallner
80185931c5 cleanup 2023-01-14 16:44:40 +01:00
Rene Schallner
cd18bffc62 endpoints example progress 2023-01-14 16:40:54 +01:00
Rene Schallner
9186bb58ec endpoint example: the beginnings 2023-01-14 16:13:14 +01:00