Io.http.serve_forever_from: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/io.bend as Io Lines 188-203 of ezmcp@0.1.0.0/src/io.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/io.bend&start_line=188&end_line=203 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value import emerging-ezhttp@0.21.0.0/main.bend as Ez import ezmcp@0.1.0.0/src/rpc.bend as Rpc import ezmcp@0.1.0.0/src/server.bend as Server # serve until the process is stopped, at most `max` connections at once # (0: no limit) @unsafe def http.serve_forever_from( ~C: Data, ~srv: C -> Server.Server, ~run: C -> String -> Value.Json -> IO(Rpc.Out), ~path: String, ~origins: List<&2, String>, +ctx: C, host: String, port: U32, +max: U32 ) -> IO(Unit): Ez.http.serve_forever_with(~C, ~(c => req => http.answer_from(C, srv, run, path, origins, c, req)), ctx, host, port, max) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/main.bend&name=http.serve_forever_with https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/io.bend&name=http.answer_from https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=Out https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=Server