MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / SPACETIMEDB_HTTP_HANDLER

Function SPACETIMEDB_HTTP_HANDLER

modules/module-test-cpp/src/lib.cpp:711–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711SPACETIMEDB_HTTP_HANDLER(get_simple, HandlerContext ctx, HttpRequest request) {
712 return HttpResponse{
713 200,
714 HttpVersion::Http11,
715 {},
716 HttpBody::from_string("ok"),
717 };
718}
719
720SPACETIMEDB_HTTP_ROUTER(router) {
721 return Router().get("/get", get_simple);

Callers

nothing calls this directly

Calls 1

from_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…