RequestServer.serveSingleHttpConnectionOnStdio

void serveSingleHttpConnectionOnStdio(alias fun, CustomCgi = Cgi, long maxContentLength = defaultMaxContentLength)()

Serves a single "connection", but the connection is spoken on stdin and stdout instead of on a socket.

Intended for cases like working from systemd, like discussed here: https://forum.dlang.org/post/avmkfdiitirnrenzljwc@forum.dlang.org

History

Added May 29, 2021