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

23 commits

Author SHA1 Message Date
Rene Schallner
3aaa7fcc24 removed Self and @This() as much as possible 2025-03-21 18:57:33 +01:00
Rene Schallner
9eb254d5f8 get rid of zap.util.FreeOrNot 2025-03-21 18:21:27 +01:00
renerocksai
ab42f971a0
remove usingnamespace 2025-03-16 16:17:42 +01:00
Rene Schallner
fed9633121 make zap master build with zig master 2024-06-27 19:33:04 +02: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
eca4d511f0 finalize: allocator always 1st-ish arg 2024-01-09 10:55:27 +01:00
renerocksai
551d033edc API cleanup #2
--------------

- Middleware: no more MixContexts
    - zig structs are fine
- more documentation (comments -> autodoc).
- websocket docs
2024-01-08 19:26:16 +01:00
renerocksai
3d651229f8 API cleanup #1
--------------

- EndpointListener.register() // was: addEndpoint
- no more Simple
- getEndpoint -> endpoint()
2024-01-08 15:50:46 +01:00
Rene Schallner
82323f835e 0.12.0 ready 2023-12-29 23:34:33 +01:00
Rene Schallner
d1da4ec3bc fix: setCookie in ReleaseXXX mode, spelling COOKIE 2023-05-29 18:19:25 +02:00
Rene Schallner
af4d62ab97 latest zig, fix std.sort.sort -> std.mem.sort 2023-05-28 00:11:33 +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
Ed Yu
60769fc1fe cookie max-age should be set to -1 for browser to remove the cookie 2023-05-20 11:27:11 -07: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
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
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
6fb7dc8176 BasicAuth/Token68 works + tested 2023-04-16 20:32:17 +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