def http.serve

ezmcp@0.1.0.0 · main.bend:139

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

139# serve the endpoint on host:port for `limit` connections, each on its own
140# fork with no limit on how many at once, then stop once every connection is
141# closed
142def http.serve(
143  ~run: String -> Value.Json -> IO(Rpc.Out),
144  ~srv: Server.Server,
145  ~path: String,
146  ~origins: List<&2, String>,
147  host: String,
148  port: U32,
149  limit: U32
150) -> IO(Unit):
151  Io.http.serve(run, srv, path, origins, host, port, limit)

Uses (9)

Used by (0)

No other definition uses this definition.