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

Function RESTERR

src/rest.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message)
65{
66 req->WriteHeader("Content-Type", "text/plain");
67 req->WriteReply(status, message + "\r\n");
68 return false;
69}
70
71static RetFormat ParseDataFormat(std::string& param, const std::string& strReq)
72{

Callers 8

CheckWarmupFunction · 0.85
rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85
rest_getutxosFunction · 0.85

Calls 2

WriteHeaderMethod · 0.80
WriteReplyMethod · 0.80

Tested by

no test coverage detected