diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-17 10:05:44 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-17 10:05:44 +0100 |
| commit | 9c979a6fefdfc6709b3576014520d219e02c3649 (patch) | |
| tree | 1f74a2edbaac651c983cff100bca250a329339d3 /src/context.zig | |
| parent | e95cf5c7b6a08eb560763d5167fbddc1c2117bcc (diff) | |
self import lib
Diffstat (limited to 'src/context.zig')
| -rw-r--r-- | src/context.zig | 18 |
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, + } = .{}, +} = .{}, |