authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-07 20:49:51 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-07 20:49:51 -07:00
logad6cb8ee404036259f788e4d548b9b5a7d75389a
treec22c8b483ac8d36cef372455cb92838414d6448e
parent7d05e99601740c3388080dbb4ce569def970aeb9
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.16.0


3 files changed, 3 insertions(+), 3 deletions(-)

README.md+1-1
...@@ -3,7 +3,7 @@...@@ -3,7 +3,7 @@
3![loc](https://sloc.xyz/github/nektro/zig-net-http)3![loc](https://sloc.xyz/github/nektro/zig-net-http)
4[![license](https://img.shields.io/github/license/nektro/zig-net-http.svg)](https://github.com/nektro/zig-net-http/blob/master/LICENSE)4[![license](https://img.shields.io/github/license/nektro/zig-net-http.svg)](https://github.com/nektro/zig-net-http/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)6[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
88
9An alternative HTTP server/client layer.9An alternative HTTP server/client layer.
build.zig+1-1
...@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {...@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
14 }),14 }),
15 });15 });
16 deps.addAllTo(tests);16 deps.addAllTo(tests);
17 tests.linkLibC();17 tests.root_module.link_libc = true;
18 tests.use_llvm = !disable_llvm;18 tests.use_llvm = !disable_llvm;
19 tests.use_lld = !disable_llvm;19 tests.use_lld = !disable_llvm;
2020
http.zig+1-1
...@@ -245,7 +245,7 @@ pub const ClientRequest = struct {...@@ -245,7 +245,7 @@ pub const ClientRequest = struct {
245 // HTTP/1.1 200 OK245 // HTTP/1.1 200 OK
246 if (!std.mem.eql(u8, &try req.readArray(9), "HTTP/1.1 ")) return error.Bad;246 if (!std.mem.eql(u8, &try req.readArray(9), "HTTP/1.1 ")) return error.Bad;
247 const status_int = extras.parseDigits(u16, &try req.readArray(3), 10) catch return error.Bad;247 const status_int = extras.parseDigits(u16, &try req.readArray(3), 10) catch return error.Bad;
248 const status = std.meta.intToEnum(Status, status_int) catch return error.Bad;248 const status = std.enums.fromInt(Status, status_int) orelse return error.Bad;
249 if (!std.mem.eql(u8, &try req.readArray(1), " ")) return error.Bad;249 if (!std.mem.eql(u8, &try req.readArray(1), " ")) return error.Bad;
250 var phrase_buf: [64]u8 = undefined;250 var phrase_buf: [64]u8 = undefined;
251 _ = try req.readUntilDelimitersBuf(&phrase_buf, "\r\n");251 _ = try req.readUntilDelimitersBuf(&phrase_buf, "\r\n");