initial fetch in zig

This commit is contained in:
Muki Kiboigo
2025-08-22 06:46:09 -07:00
parent cab5117d85
commit 9efc27c2bb
6 changed files with 284 additions and 16 deletions

View File

@@ -339,13 +339,13 @@ pub const Opts = struct {
proxy_bearer_token: ?[:0]const u8 = null,
};
pub const Method = enum {
GET,
PUT,
POST,
DELETE,
HEAD,
OPTIONS,
pub const Method = enum(u8) {
GET = 0,
PUT = 1,
POST = 2,
DELETE = 3,
HEAD = 4,
OPTIONS = 5,
};
// TODO: on BSD / Linux, we could just read the PEM file directly.