change response object header type to be immutable
All checks were successful
Build / build (push) Successful in 1m22s
Build / sign (push) Successful in 53s
Build / deploy (push) Successful in 59s

This commit is contained in:
Emil Lerch 2024-05-06 11:18:08 -07:00
parent 6dcc416167
commit 48c0e893da
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -57,7 +57,7 @@ pub const ZigResponse = struct {
status: std.http.Status = .ok, status: std.http.Status = .ok,
reason: ?[]const u8 = null, reason: ?[]const u8 = null,
body: *std.ArrayList(u8), body: *std.ArrayList(u8),
headers: []std.http.Header, headers: []const std.http.Header,
request: ZigRequest, request: ZigRequest,
prepend: std.ArrayList(u8), prepend: std.ArrayList(u8),