def http.serve_from
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
236# serve the endpoint on host:port for `limit` connections, its server and
237# runner given `ctx`, each connection on its own fork and at most `max` at
238# once (0: no limit), then stop once every connection is closed
239def http.serve_from(
240 ~C: Data,
241 ~srv: C -> Server.Server,
242 ~run: C -> String -> Value.Json -> IO(Rpc.Out),
243 ~path: String,
244 ~origins: List<&2, String>,
245 +ctx: C,
246 host: String,
247 port: U32,
248 limit: U32,
249 max: U32
250) -> IO(Unit):
251 Io.http.serve_from(C, srv, run, path, origins, ctx, host, port, limit, max)
Uses (9)
Used by (0)
No other definition uses this definition.