blob: 010dd0ed3fc1360f37f4b4fa1399ab396ac50d60 (
plain)
1
2
3
4
5
6
7
8
9
|
const std = @import("std");
const httpz = @import("httpz");
pub const Handler = struct {
pub fn dispatch(self: *Handler, action: httpz.Action(*Handler), req: *httpz.Request, res: *httpz.Response) !void {
try action(self, req, res);
std.debug.print("{any} {s}: {d}\n", .{req.method, req.url.raw, res.status});
}
};
|