def server.serve_with

emerging-ezhttp@0.21.0.0 · src/server.bend:443

import emerging-ezhttp@0.21.0.0/src/server.bend as Server
import Base

443# listen and serve with a pure handler and a context value
444def server.serve_with(~C: Data, ~handle: C -> Req -> Answer, +ctx: C,
445  host: String, port: U32, limit: U32, max: U32) -> IO(Unit):
446  server.serve_io_with(~C, ~(c => r => server.lift.with(~C, handle, c, r)), ctx,
447    host, port, limit, max)

Uses (8)

Used by (1)