MCPcopy
hub / github.com/witheve/Eve / HTTPRuntimeClient

Class HTTPRuntimeClient

src/runtime/server.ts:45–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43//---------------------------------------------------------------------
44
45class HTTPRuntimeClient extends RuntimeClient {
46 server: ServerDatabase;
47 constructor() {
48 let server = new ServerDatabase();
49 const dbs = {
50 "http": new HttpDatabase(),
51 "server": server,
52 "shared": shared,
53 "browser": new Database(),
54 }
55 super(dbs);
56 this.server = server;
57 }
58
59 handle(request, response) {
60 this.server.handleHttpRequest(request, response);
61 }
62
63 send(json) {
64 // there's nothing for this to do.
65 }
66}
67
68//---------------------------------------------------------------------
69// Express app

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected