aboutsummaryrefslogtreecommitdiff
path: root/src/context.zig
blob: 54ece18612f98355b76ee9f96d1850b7ce078b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
    } = .{},
} = .{},