Louis Pearson
5ed5dc2c3a
feat: add getHeaderCommon
2024-04-18 16:43:07 -06:00
geemili
5f4b7957dc
fix: use error return trace in senderror
...
This should produce more usable error messages. The error messages before
this were pointing at zap runtime functions, instead of at the code that
produced the error.
2024-04-18 16:16:15 -06:00
Andreas Stocker
44af23827e
fix breaking changes as of 14-4-24
2024-04-14 18:19:18 +02:00
dweiller
43b6993942
update for @fieldParentPointer RLS change
2024-04-05 15:13:44 +11:00
Rene Schallner
c81a211bd3
re-write of zap.Router, fix #83
2024-03-23 23:00:25 +01:00
Rene Schallner
b2f4e29258
re-write of zap.Router, fix #83
2024-03-23 22:35:49 +01:00
Andreas Stocker
590f25952d
WebSockets: fix write function by replacing fio.str2fio with util.str2fio
2024-02-29 15:51:35 +01:00
Rene Schallner
77f5fd05b9
use methodAsEnum() in endpoint and json example
2024-02-24 15:57:11 +01:00
Rene Schallner
6d710ba448
use methodAsEnum() in endpoint and json example
2024-02-24 15:52:27 +01: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
Rene Schallner
8a18a0258f
performance: revert r.method enum back to ?[]const u8
...
new http.Method enum is available via r.methodAsEnum()
2024-02-24 15:36:44 +01:00
Rene Schallner
30c5b392a9
in http.methodToEnum use std.meta.stringToEnum
2024-02-24 15:22:37 +01:00
Rene Schallner
db579a99f0
in http.methodToEnum use std.meta.stringToEnum
2024-02-24 15:18:03 +01:00
Rene Schallner
d51a0b8ca3
make latest patches work on zig master
2024-02-23 20:34:19 +01:00
Rene Schallner
1f6e945c08
cosmetics
2024-02-23 20:21:11 +01:00
Rene Schallner
680e981d13
access raw query params w/o allocator, close #40
2024-02-23 20:20:58 +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
Rene Schallner
0609f98e05
cosmetics
2024-02-22 22:54:46 +01:00
Rene Schallner
c91948933c
access raw query params w/o allocator, close #40
2024-02-22 22:44:04 +01:00
Froxcey
37f7b8b4aa
Use custom method enum
2024-01-31 21:15:27 +08:00
Froxcey
92fdb6605c
Use std.http.Method for Request.method
2024-01-27 21:10:04 +08:00
Rene Schallner
fa4acdf954
fix router constness for current zig
2024-01-24 14:10:07 +01:00
John Colvin
a330627b09
s/ednpoint/endpoint/
2024-01-24 13:59:36 +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
b56b64f637
Merge pull request #71 from John-Colvin/patch-1
...
ednpoint typo
2024-01-24 13:51:46 +01:00
John Colvin
452ac7f12e
s/ednpoint/endpoint/
2024-01-22 23:16:20 +00:00
stringnick
5e76e17baf
some refactoring
2024-01-18 21:33:26 +01:00
stringnick
f13160eda6
simple router with clojure
2024-01-13 13:23:54 +01:00
Rene Schallner
61fbbe8b08
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:13:25 +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
7141318caf
fixed setContentTypeFromFilename consts
2024-01-09 12:03:47 +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
290d8bd7cc
added setContentTypeFromFilename thx @hauleth.
2024-01-09 11:57:48 +01:00
Rene Schallner
295c2f68dd
don't pollute global namespace with fio
2024-01-09 11:33:44 +01:00
Rene Schallner
1e1b5f5c51
finalize: allocator always 1st-ish arg
2024-01-09 11:30:16 +01:00
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