Delete types.zig

This commit is contained in:
flopetautschnig 2023-04-15 17:38:56 +02:00 committed by GitHub
parent 5ee2e5fe2a
commit f2b916a86e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
};