aboutsummaryrefslogtreecommitdiff
path: root/src/http/handler/context.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/handler/context.zig')
-rw-r--r--src/http/handler/context.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/handler/context.zig b/src/http/handler/context.zig
index 4e55446..890fa52 100644
--- a/src/http/handler/context.zig
+++ b/src/http/handler/context.zig
@@ -40,6 +40,7 @@ pub fn Context(comptime r: anytype) type {
options: *const fn (Request) Response = badRequest,
trace: *const fn (Request) Response = badRequest,
patch: *const fn (Request) Response = badRequest,
+ query: *const fn (Request) Response = badRequest,
pub fn handle(
self: *const @This(),
@@ -66,6 +67,7 @@ pub fn Context(comptime r: anytype) type {
.OPTIONS => self.options,
.TRACE => self.trace,
.PATCH => self.patch,
+ .QUERY => self.query,
})(req);
}