Delete types.zig
This commit is contained in:
parent
5ee2e5fe2a
commit
f2b916a86e
1 changed files with 0 additions and 22 deletions
22
types.zig
22
types.zig
|
@ -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,
|
||||
};
|
Loading…
Reference in a new issue