diff --git a/types.zig b/types.zig deleted file mode 100644 index 698f586..0000000 --- a/types.zig +++ /dev/null @@ -1,22 +0,0 @@ -const tuple = @import("std").meta.Tuple; - -pub const Route = tuple(&.{ []const u8, *const fn () Response }); - -pub const Header = tuple(&.{ []const u8, *const fn () Response }); - -pub const HTTP_Version = enum { - HTTP1_1, - HTTP2, -}; - -pub const Request = struct { - httpVersion: HTTP_Version, - headers: []Header, - body: []u8, -}; - -pub const Response = struct { - httpVersion: HTTP_Version, - headers: []Header, - body: []u8, -};