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

73 commits

Author SHA1 Message Date
Rene Schallner
fed9633121 make zap master build with zig master 2024-06-27 19:33:04 +02:00
Rene Schallner
70c0ef1100
Merge pull request #100 from desttinghim/parseAccept
Parse Accept
2024-04-29 03:34:11 +02:00
Giuseppe Cesarano
997627f288
fix: _debug typo in startWithLogging
debug = true should have been _debug = true.
2024-04-27 14:14:09 +02:00
Louis Pearson
4988feb314 fix: simplify accept header api somewhat 2024-04-24 21:53:41 -06:00
Louis Pearson
583ad97633 fix: move getHeaderCommon to zap.zig 2024-04-24 17:30:30 -06:00
Tobias Simetsreiter
3f7492260d zig 0.12.0-dev.3561+f45ba7d0c: remove type argument from fieldParentPtr 2024-04-07 18:21:49 +02:00
Rene Schallner
5ea15b8a3e performance: revert r.method enum back to ?[]const u8 new http.Method enum is available via r.methodAsEnum() 2024-02-24 15:49:14 +01:00
Froxcey
694b3196db Use custom method enum 2024-02-23 20:20:00 +01:00
Froxcey
39ee26f9a4 Use std.http.Method for Request.method 2024-02-23 20:16:44 +01:00
stringnick
508b1a12c0 some refactoring 2024-01-24 13:59:36 +01:00
stringnick
2c2814144e simple router with clojure 2024-01-24 13:59:36 +01: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
652f0e2277 Merge branch 'api_clean' into zig-0.12.0 2024-01-09 12:12:46 +01:00
Rene Schallner
baf58b1666 fixed setContentTypeFromFilename consts 2024-01-09 12:02:31 +01:00
Rene Schallner
737691581a added setContentTypeFromFilename thx @hauleth. 2024-01-09 12:00:56 +01:00
Rene Schallner
724ce87bd2 don't pollute global namespace with fio 2024-01-09 11:07:07 +01:00
Rene Schallner
eca4d511f0 finalize: allocator always 1st-ish arg 2024-01-09 10:55:27 +01:00
renerocksai
35a8d8f39b progress. alloc 1st 2024-01-09 08:21:03 +01:00
renerocksai
e7305816d3 API cleanup #3
--------------

More zap docstrings
2024-01-08 21:41:44 +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
c38856d0e1 added zap.Tls, updated https example 2023-12-30 03:13:36 +01:00
Rene Schallner
82323f835e 0.12.0 ready 2023-12-29 23:34:33 +01:00
Rene Schallner
edf585c220 added tls support to zap 2023-12-29 17:31:10 +01:00
Rene Schallner
942fb0f4a9 fixed multi-file upload 2023-09-13 02:11:16 +02:00
Rene Schallner
661c230c0f added support for multi-file form upload 2023-09-13 01:36:42 +02:00
Rene Schallner
db9fd24f01 return unsupported for arrays 2023-09-12 20:06:51 +02:00
Rene Schallner
fe9937f331 return unsupported in case of arrays or unsupported types 2023-09-12 20:05:58 +02:00
Rene Schallner
8dbe0671a6 renamed unsupported_hash 2023-09-12 18:48:28 +02:00
Rene Schallner
ae98019e60 data as string 2023-09-12 18:36:57 +02:00
Rene Schallner
7884d56211 log data type 2023-09-12 18:19:12 +02:00
Rene Schallner
5f939fd666 try anyway 2023-09-12 18:04:09 +02:00
Rene Schallner
d1a0b6c15d added diagnostics 2023-09-12 16:24:12 +02:00
Rene Schallner
9517e7a253 progress: reading binary data 2023-09-12 16:02:34 +02:00
Rene Schallner
0f6beb4347 format httpparambinaryfile 2023-09-12 15:30:07 +02:00
Rene Schallner
8845afaf33 progress 2023-09-12 15:20:00 +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
5611026479 Update builtin functions due to zig changes 2023-06-21 14:53:37 -07:00
Rene Schallner
d1da4ec3bc fix: setCookie in ReleaseXXX mode, spelling COOKIE 2023-05-29 18:19:25 +02:00
Rene Schallner
f5bbbff15f latest zig->snek_case, std.debug.TTY -> std.io.tty 2023-05-28 00:22:37 +02:00
Rene Schallner
e02fefd669 zap.zig: no ugly _module 2023-05-24 19:31:32 +02:00
Rene Schallner
fdf731f5b6 expose zap.stop() 2023-05-24 01:23:43 +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
a19acaeb83 better cache-control example f. sendFile 2023-05-14 00:21:25 +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
00291117d8 websockets + example 2023-05-07 05:02:09 +02:00