std.http: add missing documentation and a few examples

This commit is contained in:
Nameless
2023-12-14 15:52:39 -06:00
committed by Andrew Kelley
parent 832f6d8f7f
commit b723296e1f
4 changed files with 141 additions and 13 deletions

View File

@@ -220,7 +220,7 @@ pub fn main() !void {
defer _ = gpa_client.deinit();
server = Server.init(salloc, .{ .reuse_address = true });
server = Server.init(.{ .reuse_address = true });
const addr = std.net.Address.parseIp("127.0.0.1", 0) catch unreachable;
try server.listen(addr);