From 9c979a6fefdfc6709b3576014520d219e02c3649 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 17 Nov 2025 10:05:44 +0100 Subject: self import lib --- src/context.zig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/context.zig (limited to 'src/context.zig') 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, + } = .{}, +} = .{}, -- cgit v1.2.3-70-g09d2