fn invalidateStrings(h: *Head) void h: *Head713
714
715
716
717
718
719 fn invalidateStrings(h: *Head) void {
h.bytes = undefined;
h.reason = undefined;
if (h.location) |*s| s.* = undefined;
if (h.content_type) |*s| s.* = undefined;
if (h.content_disposition) |*s| s.* = undefined;
}
Help the programmer avoid bugs by calling this when the string memory of
Headbecomes invalidated.