srctree

Gregory Mullen parent 9270b0a5 8fbc6e4c
restruct request data with comment

src/request_data.zig added: 6, removed: 4, total 2
@@ -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;