def serve.stream.config

bend-kit-http@0.38.5.0 · http.bend:6746

import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-http@0.38.5.0/completion.bend as Completion
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

6746def serve.stream.config(
6747  ~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),
6748  config: ServerConfig
6749) -> IO(Result<&2, &2, StartupError, Unit>):
6750  do IO<Result<&2, &2, StartupError, Unit>>:
6751    started : Unit & Result<&2, &1, StartupError, Server<Unit>> <- server.start(~Unit, ~Unit, Unit{}, Unit{}, config)
6752    serve.stream.started(~S, ~start, ~piece, ~finish, ~abort, ~observe, started)

Uses (17)

Used by (1)