Skip to content

Commit

Permalink
testing supporting only http[s]
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Nov 7, 2024
1 parent 6c900eb commit 4b624c2
Show file tree
Hide file tree
Showing 9 changed files with 1,152 additions and 1,262 deletions.
3 changes: 2 additions & 1 deletion examples/http/basic/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ pub fn main() !void {
}.handler_fn));

var server = http.Server(.plain, .auto).init(.{
.router = &router,
.allocator = allocator,
.threading = .single,
});
defer server.deinit();

try server.bind(host, port);
try server.listen(.{ .router = &router });
try server.listen();
}
1 change: 0 additions & 1 deletion src/core/lib.zig
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub const Job = @import("job.zig").Job;
pub const Pseudoslice = @import("pseudoslice.zig").Pseudoslice;
pub const Server = @import("server.zig").Server;
Loading

0 comments on commit 4b624c2

Please sign in to comment.