def serve.stream.config
bend-kit-http@0.38.2.0 · http.bend:6754
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-http@0.38.2.0/completion.bend as Completion
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
6754def serve.stream.config(
6755 ~S: Type, ~start: Req -> IO(S), ~piece: S -> Bytes.Bytes -> IO(S & Bool), ~finish: S -> IO(Reply), ~abort: S -> StreamAbort -> IO(Unit), ~observe: U32 -> Completion.Outcome -> IO(Unit),
6756 config: ServerConfig
6757) -> IO(Result<&2, &2, StartupError, Unit>):
6758 do IO<Result<&2, &2, StartupError, Unit>>:
6759 started : Unit & Result<&2, &1, StartupError, Server<Unit>> <- server.start(~Unit, ~Unit, Unit{}, Unit{}, config)
6760 serve.stream.started(~S, ~start, ~piece, ~finish, ~abort, ~observe, started)