From ba7ec40782ba7020d82a56896a5eb1b52578d6aa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 20 Sep 2026 02:33:02 -0300 Subject: Add cloud9.serve: an std.Io runner around the file-server engine Runner(Backend, Options, Limits) listens on Unix or TCP, runs a reader and a serve task per connection in one Io.Group, pushes frames into an fs.Server, and lets the backend answer now or later from any task or thread (reply, flush, wake); Tflush, greet timeout, connection limit, close and stop with cancellation are covered by tests over real sockets. The engine and the backend contract stay Io-free, so the push/step mode for freestanding targets is unchanged. Documented as the two ways to drive the engine. Co-Authored-By: Claude Fable 5.1 --- src/root.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/root.zig') diff --git a/src/root.zig b/src/root.zig index d37804b..586a41c 100644 --- a/src/root.zig +++ b/src/root.zig @@ -49,7 +49,9 @@ test { } pub const http = @import("http.zig"); pub const transport = @import("transport.zig"); +pub const serve = @import("serve.zig"); pub const Quic = @import("quic.zig").Quic; test { _ = @import("session_test.zig"); + _ = @import("serve.zig"); } -- cgit v1.3