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

Function RESTERR

src/rest.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70};
71
72static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message)
73{
74 req->WriteHeader("Content-Type", "text/plain");
75 req->WriteReply(status, message + "\r\n");
76 return false;
77}
78
79/**
80 * Get the node context.

Callers 15

GetNodeContextFunction · 0.85
GetMemPoolFunction · 0.85
GetChainmanFunction · 0.85
CheckWarmupFunction · 0.85
rest_headersFunction · 0.85
rest_spent_txoutsFunction · 0.85
rest_blockFunction · 0.85
rest_block_partFunction · 0.85
rest_filter_headerFunction · 0.85
rest_block_filterFunction · 0.85
rest_chaininfoFunction · 0.85
rest_deploymentinfoFunction · 0.85

Calls 2

WriteHeaderMethod · 0.80
WriteReplyMethod · 0.45

Tested by

no test coverage detected