aboutsummaryrefslogtreecommitdiff
path: root/src/context.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.zig')
-rw-r--r--src/context.zig18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/context.zig b/src/context.zig
new file mode 100644
index 0000000..54ece18
--- /dev/null
+++ b/src/context.zig
@@ -0,0 +1,18 @@
+const std = @import("std");
+
+const memora = @import("memora");
+const Storage = memora.Storage;
+
+const Self = @This();
+
+allocator: std.mem.Allocator,
+request: *std.http.Server.Request,
+storage: *Storage,
+fingerprint: []const u8,
+user: ?[]const u8 = null,
+response: struct {
+ headers: struct {
+ content_type: []const u8 = "application/json",
+ fingerprint: ?[]const u8 = null,
+ } = .{},
+} = .{},