http: use 16KB for the client header buffer

This commit is contained in:
Pierre Tachoire
2024-06-18 17:17:43 +02:00
parent f6e080bdfd
commit 17a86cc1a6
2 changed files with 7 additions and 3 deletions

View File

@@ -129,8 +129,11 @@ pub const XMLHttpRequest = struct {
response_bytes: ?[]const u8 = null,
response_type: ResponseType = .Empty,
response_headers: Headers,
// used by zig client to parse reponse headers.
response_header_buffer: [1024]u8 = undefined,
// used by zig client to parse response headers.
// use 16KB for headers buffer size.
response_header_buffer: [1024 * 16]u8 = undefined,
response_status: u10 = 0,
response_override_mime_type: ?[]const u8 = null,
response_mime: Mime = undefined,