Rene Schallner
9543ede15f
EndpointHandler: de-morgan logic for useRoutes
...
from !a or b -> a and b
2024-10-14 23:18:19 +02:00
iacore
1155051712
update docs for zap.start
2024-09-02 17:21:15 +00:00
Thom Dickson
903716bcf5
update docs and examples for endpoint middleware
2024-07-25 20:38:26 -04:00
Thom Dickson
c5325337e1
Create options for EndpointHandler
2024-07-23 18:39:35 -04:00
Rene Schallner
11fa66a31c
doc: getHeader need lowercase keys
2024-07-15 12:29:03 +02:00
Thom Dickson
ee94128c7a
rename MustacheLoadArgs to LoadArgs
2024-07-14 15:57:43 -04:00
Thom Dickson
573b27b9d8
include BuildResult in public Mustache API
2024-07-14 00:09:20 -04:00
Rene Schallner
929a236463
Merge pull request #115 from s0er3n/master
...
feat: add HEAD Method to `methodToEnum`
2024-06-27 19:37:45 +02:00
Rene Schallner
fed9633121
make zap master build with zig master
2024-06-27 19:33:04 +02:00
Sören Michaels
d330979a75
feat: add HEAD Method to methodAsEnum
2024-06-23 23:59:43 +02:00
Rene Schallner
70c0ef1100
Merge pull request #100 from desttinghim/parseAccept
...
Parse Accept
2024-04-29 03:34:11 +02:00
Louis Pearson
31ba05d6e9
feat: pre-allocate enough space for accept items
2024-04-27 21:09:20 -06:00
Rene Schallner
c79d62ca2c
proposed change to parseAccept API
2024-04-27 21:29:32 +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
6d646b62d6
feat: make example for parseAccept
2024-04-24 19:19:11 -06:00
Louis Pearson
698c06d808
feat: add parseAccept
2024-04-24 18:15:04 -06:00
Louis Pearson
583ad97633
fix: move getHeaderCommon to zap.zig
2024-04-24 17:30:30 -06:00
Rene Schallner
d83bf5afa7
Merge pull request #94 from jkoop/more-http-status-enums
...
update http.zig to rfc9110
2024-04-24 02:37:49 +02:00
Louis Pearson
a907ef9fad
feat: Wrap mimetypeRegister and mimetypeClear
2024-04-23 16:44:18 -06:00
Louis Pearson
49d629ba55
fix: last_modifed -> last_modified
2024-04-23 15:15:40 -06:00
Joe Koop
c1e6c160d0
update http.zig to rfc9110
...
using MDN as a reference
2024-04-22 10:12:36 -05:00
Rene Schallner
5f368cf125
add doc comment to Request.sendError
2024-04-21 20:07:16 +02:00
Rene Schallner
d17436932d
fix test-sendfile (std.http use)
2024-04-21 17:38:06 +02:00
Rene Schallner
0e43f565ec
fix test-httpparams (std.http use)
2024-04-21 16:22:51 +02:00
Rene Schallner
90c544d69a
fix test-authentication (std.http use)
2024-04-21 16:20:07 +02:00
Rene Schallner
540c2043fb
re-fix error
2024-04-21 14:24:17 +02:00
Rene Schallner
1e1999802a
Merge branch 'zig-0.12.0'
2024-04-21 14:20:15 +02:00
Rene Schallner
8cfd190fb2
Merge branch 'zig-0.12.0' into zig-0.12.0
2024-04-21 13:59:47 +02:00
Rene Schallner
789e6b02b8
Merge pull request #92 from leroycep/error-return-trace
...
fix: use error return trace in senderror
2024-04-21 13:48:58 +02:00
Louis Pearson
38c12a0a6b
fix: use runtime values of HTTP_HEADER_* for getHeaderCommon
2024-04-18 18:08:39 -06:00
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