def http.handle_with

ezmcp@0.1.0.0 · main.bend:172

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 emerging-ezhttp@0.21.0.0/src/http.bend as Http
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

172# one request to the MCP endpoint at `path`, its runner given `ctx`
173def http.handle_with(
174  ~C: Data,
175  ~run: C -> String -> Value.Json -> IO(Rpc.Out),
176  ~srv: Server.Server,
177  ~path: String,
178  ~origins: List<&2, String>,
179  +ctx: C,
180  req: Http.Request
181) -> IO(Http.Reply):
182  Io.http.handle_with(C, run, srv, path, origins, ctx, req)

Uses (9)

Used by (0)

No other definition uses this definition.