MCPcopy Create free account
hub / github.com/ElementsProject/elements / RESTERR

Function RESTERR

src/rest.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 14

GetNodeContextFunction · 0.85
GetMemPoolFunction · 0.85
GetChainmanFunction · 0.85
CheckWarmupFunction · 0.85
rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_filter_headerFunction · 0.85
rest_block_filterFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85

Calls 2

WriteHeaderMethod · 0.80
WriteReplyMethod · 0.80

Tested by

no test coverage detected