aboutsummaryrefslogtreecommitdiff
path: root/src/context.zig
blob: 6e73b5d928b2277d254ad2adeeab40264b0c2de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
response: struct {
    headers: struct {
        content_type: []const u8 = "application/json",
        fingerprint: ?[]const u8 = null,
    } = .{},
} = .{},