Eliminates duplication in the creation of HTTP headers

This commit is contained in:
Nikolay Govorov
2026-02-04 09:08:57 +00:00
parent f71aa1cad2
commit a72782f91e
8 changed files with 107 additions and 92 deletions

View File

@@ -32,15 +32,12 @@ pub fn main() !void {
wg.wait();
}
lp.log.opts.level = .warn;
const config = lp.Config{
.mode = .{ .serve = .{
.common = .{
.tls_verify_host = false,
.user_agent_suffix = "internal-tester",
},
} },
.exec_name = "legacy-test",
};
const config = try lp.Config.init(allocator, "legacy-test", .{ .serve = .{
.common = .{
.tls_verify_host = false,
.user_agent_suffix = "internal-tester",
},
} });
var app = try lp.App.init(allocator, &config);
defer app.deinit();