def serve.on.with
bend-kit-http@0.38.2.0 · http.bend:7076
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
7076def serve.on.with(~h: Req -> IO(Reply), ~observe: U32 -> Completion.Outcome -> IO(Unit), host: String, +port: U32, +max: Nat) -> IO(Unit):
7077 do IO<Unit>:
7078 limits.validate(max)
7079 started : Unit & Result<&2, &1, StartupError, Server<Unit>> <-
7080 server.start(~Unit, ~Unit, Unit{}, Unit{}, server.config.with(host, port, max))
7081 serve.started(~h, ~observe, started)