examples: port header example to zig

This looks a lot nicer than its c counterpart, in my opinion.
This commit is contained in:
2023-08-23 01:05:37 -07:00
parent 3e5840bd84
commit ebd3e64111
2 changed files with 63 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ const Example = struct {
const examples = [_]Example{
.{ .name = "request_reply", .file = "examples/request_reply.zig" },
.{ .name = "headers", .file = "examples/headers.zig" },
};
pub fn add_examples(b: *std.build, options: ExampleOptions) void {