move FormData to xhr folder

This commit is contained in:
Karl Seguin
2025-05-15 16:39:49 +08:00
parent 110dc751a4
commit 265272b9d3
2 changed files with 3 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ const WebApis = struct {
@import("storage/storage.zig").Interfaces, @import("storage/storage.zig").Interfaces,
@import("url/url.zig").Interfaces, @import("url/url.zig").Interfaces,
@import("xhr/xhr.zig").Interfaces, @import("xhr/xhr.zig").Interfaces,
@import("url/form_data.zig").Interfaces, @import("xhr/form_data.zig").Interfaces,
@import("xmlserializer/xmlserializer.zig").Interfaces, @import("xmlserializer/xmlserializer.zig").Interfaces,
}); });
}; };

View File

@@ -46,6 +46,8 @@ pub const Interfaces = .{
// This is much easier to do with an ArrayList than a HashMap, especially given // This is much easier to do with an ArrayList than a HashMap, especially given
// that the FormData could be mutated while iterating. // that the FormData could be mutated while iterating.
// The downside is that most of the normal operations are O(N). // The downside is that most of the normal operations are O(N).
// https://xhr.spec.whatwg.org/#interface-formdata
pub const FormData = struct { pub const FormData = struct {
entries: std.ArrayListUnmanaged(Entry), entries: std.ArrayListUnmanaged(Entry),