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

187 commits

Author SHA1 Message Date
renerocksai
a84204df58 progress. alloc 1st 2024-01-09 11:30:16 +01:00
renerocksai
0fb4d8a9a1 API cleanup #3 --------------
More zap docstrings
2024-01-09 11:30:16 +01:00
renerocksai
207a7619f4 API cleanup #2 --------------
- Middleware: no more MixContexts
    - zig structs are fine
- more documentation (comments -> autodoc).
- websocket docs
2024-01-09 11:28:53 +01:00
renerocksai
8892cae7df API cleanup #1 --------------
- EndpointListener.register() // was: addEndpoint
- no more Simple
- getEndpoint -> endpoint()
2024-01-09 11:28:05 +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
Brook Jeynes
8dfdfdb02c - Updated tests (all passing) - Resolved init() comment stating an error occured if nothing was passed in. - Replaced error at an unreachable location in init() to unreachable - Made many members private 2024-01-07 22:22:37 +01:00
Brook Jeynes
9c19038082 Updated mustache.zig to be more Zig like - mustache.zig now returns a Mustache struct. This allows functions to be called on the mustache instance, e.g. zap.mustacheFree(mustache) -> mustache.free(). - Updated mustache example. - Added doc strings to majority of mustache functions. 2024-01-07 22:22:37 +01:00
Brook Jeynes
6611269721 fix returned struct field 2023-12-31 10:59:18 +10:00
Brook Jeynes
22d454d134 Updated Mustache doc strings and member visibility
- Updated `Mustache.fiobjectify` to be private
- Updated docstrings on `Mustache.build`
- Renamed `Mustache.handler` -> `Mustache.handle`
- Added docstrings for `Mustache.fiobjectify` and `Mustache.handle`
- Removed `Mustache.status`
2023-12-31 10:56:37 +10:00
Rene Schallner
5082eebd74
Merge pull request #58 from BrookJeynes/mustache-zig-style
Updated `mustache.zig` to be more Zig like
2023-12-31 01:33:53 +01:00
Brook Jeynes
9cc371e567 - Updated tests (all passing)
- Resolved `init()`  comment stating an error occured if nothing was passed in.
- Replaced error at an unreachable location in `init()` to `unreachable`
- Made many members private
2023-12-31 10:27:13 +10:00
stringnick
1e849d2b05 http method options support 2023-12-31 01:20:54 +01:00
Rene Schallner
feb4ad5c77
Merge pull request #57 from StringNick/http-method-options
http method options support
2023-12-31 01:17:02 +01:00
Rene Schallner
a8a8b537fe http_auth test: http client code "fix"; also: 1 use 1 worker instead of 0 explicitly 2023-12-31 00:51:22 +01:00
Rene Schallner
012452e1e1 http_auth test: http client code "fix"; also: 1 use 1 worker instead of 0 explicitly 2023-12-31 00:18:24 +01:00
Rene Schallner
715fe03edd Added tls.zig 2023-12-30 13:19:01 +01:00
Rene Schallner
ed827ca602 oops. tls.zig 2023-12-30 13:15:22 +01:00
Brook Jeynes
9fd8c13b32 Updated mustache.zig to be more Zig like
- `mustache.zig` now returns a `Mustache` struct. This allows functions to be called
on the mustache instance, e.g. `zap.mustacheFree(mustache)` -> `mustache.free()`.
- Updated mustache example.
- Added doc strings to majority of mustache functions.
2023-12-30 13:15:07 +10:00
Rene Schallner
1061c2d4ba added zap.Tls, updated https example 2023-12-30 03:28:21 +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
stringnick
7dcac55191 http method options support 2023-12-27 23:25:57 +01:00
Rene Schallner
877bd0eea2 refactored and simplified Mustache interface 2023-09-13 13:43:33 +02:00
sadbeast
8f5aa17109 Add MustacheLoad to support loading from file
According to the facil.io docs
(http://facil.io/0.7.x/fiobj_mustache#fiobj_mustache_new):

> By setting the filename argument even when the data argument exists,
> it will allow path resolution for partial templates. Otherwise, there
> is no way to know where to find the partial templates.

This will allow partial templates to work.

However, this also introduces a breaking change to the existing
MustacheNew function. This change makes it mirror the C version where it
accepts a MustacheLoadArgs struct instead of just the data.  That's also
a handy method to have, so I renamed that to MustacheData...maybe
there's a better name?
2023-09-13 13:22:23 +02: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
Rene Schallner
83220302d7 test 2023-09-12 14:10:24 +02:00
Rene Schallner
0551bcebfb attempt to fix #41 2023-09-12 13:53:49 +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
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
af4d62ab97 latest zig, fix std.sort.sort -> std.mem.sort 2023-05-28 00:11:33 +02:00