def http.serve_forever_from

ezmcp@0.1.0.0 · main.bend:253

import ezmcp@0.1.0.0/main.bend as Ezmcp
import 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

253# serve the endpoint on host:port, its server and runner given `ctx`, each
254# connection on its own fork and at most `max` at once (0: no limit), until
255# the process is stopped
256@unsafe def http.serve_forever_from(
257  ~C: Data,
258  ~srv: C -> Server.Server,
259  ~run: C -> String -> Value.Json -> IO(Rpc.Out),
260  ~path: String,
261  ~origins: List<&2, String>,
262  +ctx: C,
263  host: String,
264  port: U32,
265  max: U32
266) -> IO(Unit):
267  Io.http.serve_forever_from(C, srv, run, path, origins, ctx, host, port, max)

Uses (9)

Used by (0)

No other definition uses this definition.