def http.serve_with
import emerging-ezhttp@0.21.0.0/main.bend as EmergingEzhttpimport Base
import emerging-ezhttp@0.21.0.0/src/server.bend as Server
355# listen on host:port and serve up to `limit` connections, each on its own
356# fork and at most `max` at once (0: no limit), calling a pure handler with
357# `ctx` and the request (Server.Req: text, and its body's octets); returns
358# once every connection is closed (SPEC.md HTTP-SRV, HTTP-TRUST-2)
359def http.serve_with(
360 ~C: Data,
361 ~handle: C -> Server.Req -> Server.Answer,
362 ctx: C,
363 host: String,
364 port: U32,
365 limit: U32,
366 max: U32
367) -> IO(Unit):
368 Server.server.serve_with(~C, handle, ctx, host, port, limit, max)
Uses (7)
Used by (0)
No other definition uses this definition.