@@ -1,9 +1,9 @@
//! Client Request Data
const Data = @This();
post: ?PostData,
query: QueryData,
const Data = @This();
pub const ContentType = @import("content-type.zig");
pub fn validate(data: Data, comptime T: type) !T {
return RequestData(T).init(data);
}
@@ -443,6 +443,8 @@ test "multipart/multipart" {}
test "application/x-www-form-urlencoded" {}
pub const ContentType = @import("content-type.zig");
const std = @import("std");
const Type = @import("builtin").Type;
const Allocator = std.mem.Allocator;