def http.serve_forever_with
import ezmcp@0.1.0.0/main.bend as Ezmcpimport Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value
import ezmcp@0.1.0.0/src/rpc.bend as Rpc
import ezmcp@0.1.0.0/src/server.bend as Server
import ezmcp@0.1.0.0/src/io.bend as Io
201# serve the endpoint on host:port, its runner given `ctx`, each connection on
202# its own fork and at most `max` at once (0: no limit; 1: one at a time),
203# until the process is stopped
204@unsafe def http.serve_forever_with(
205 ~C: Data,
206 ~run: C -> String -> Value.Json -> IO(Rpc.Out),
207 ~srv: Server.Server,
208 ~path: String,
209 ~origins: List<&2, String>,
210 +ctx: C,
211 host: String,
212 port: U32,
213 max: U32
214) -> IO(Unit):
215 Io.http.serve_forever_with(C, run, srv, path, origins, ctx, host, port, max)
Uses (9)
Used by (0)
No other definition uses this definition.