Context: VOID Forge needs Git smart HTTP, live logs and MCP over HTTP. Forge tracks this as VL-STREAM-01 in its VoidLibrary gap plan.
Current behavior: ServerResponse carries a complete string or a file path, and serve_connection invokes the handler before sending its response. BodyReader streams requests, but there is no API that reads the request while producing the response concurrently. WebSockets do not provide the missing HTTP exchange contract.
Need: bounded response production with downstream backpressure, cancellation, deadlines and deterministic closure.
Proposed API: HttpServer::add_duplex_route plus a scoped ResponseWriter with begin, write_some and finish. Allow one reader and one writer concurrently; forbid concurrent writers and retained references after the exchange completes. Handle partial writes, fixed/chunked framing and bodyless responses. An error before headers can produce an error response; after headers the stream terminates without reporting success.
Tests/gate: a client uploading while reading, stalled consumers, disconnects, cancellation, malformed framing, shutdown and bounded memory. Preserve the buffered/file APIs and their tests. Forge gates M06 (Git) and M17 (MCP) on this.
Context: VOID Forge needs Git smart HTTP, live logs and MCP over HTTP. Forge tracks this as VL-STREAM-01 in its VoidLibrary gap plan.
Current behavior: ServerResponse carries a complete string or a file path, and serve_connection invokes the handler before sending its response. BodyReader streams requests, but there is no API that reads the request while producing the response concurrently. WebSockets do not provide the missing HTTP exchange contract.
Need: bounded response production with downstream backpressure, cancellation, deadlines and deterministic closure.
Proposed API: HttpServer::add_duplex_route plus a scoped ResponseWriter with begin, write_some and finish. Allow one reader and one writer concurrently; forbid concurrent writers and retained references after the exchange completes. Handle partial writes, fixed/chunked framing and bodyless responses. An error before headers can produce an error response; after headers the stream terminates without reporting success.
Tests/gate: a client uploading while reading, stalled consumers, disconnects, cancellation, malformed framing, shutdown and bounded memory. Preserve the buffered/file APIs and their tests. Forge gates M06 (Git) and M17 (MCP) on this.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context: VOID Forge needs Git smart HTTP, live logs and MCP over HTTP. Forge tracks this as VL-STREAM-01 in its VoidLibrary gap plan.
Current behavior: ServerResponse carries a complete string or a file path, and serve_connection invokes the handler before sending its response. BodyReader streams requests, but there is no API that reads the request while producing the response concurrently. WebSockets do not provide the missing HTTP exchange contract.
Need: bounded response production with downstream backpressure, cancellation, deadlines and deterministic closure.
Proposed API: HttpServer::add_duplex_route plus a scoped ResponseWriter with begin, write_some and finish. Allow one reader and one writer concurrently; forbid concurrent writers and retained references after the exchange completes. Handle partial writes, fixed/chunked framing and bodyless responses. An error before headers can produce an error response; after headers the stream terminates without reporting success.
Tests/gate: a client uploading while reading, stalled consumers, disconnects, cancellation, malformed framing, shutdown and bounded memory. Preserve the buffered/file APIs and their tests. Forge gates M06 (Git) and M17 (MCP) on this.