MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / StartREST

Function StartREST

src/rest.cpp:1162–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160};
1161
1162void StartREST(const std::any& context)
1163{
1164 for (const auto& up : uri_prefixes) {
1165 auto handler = [context, up](HTTPRequest* req, const std::string& prefix) { return up.handler(context, req, prefix); };
1166 RegisterHTTPHandler(up.prefix, false, handler);
1167 }
1168}
1169
1170void InterruptREST()
1171{

Callers 1

AppInitServersFunction · 0.85

Calls 1

RegisterHTTPHandlerFunction · 0.85

Tested by

no test coverage detected