MCPcopy Create free account
hub / github.com/Raptor3um/raptoreum / WriteHeader

Method WriteHeader

src/httpserver.cpp:559–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void HTTPRequest::WriteHeader(const std::string &hdr, const std::string &value) {
560 struct evkeyvalq *headers = evhttp_request_get_output_headers(req);
561 assert(headers);
562 evhttp_add_header(headers, hdr.c_str(), value.c_str());
563}
564
565/** Closure sent to main thread to request a reply to be sent to
566 * a HTTP request.

Callers 11

RESTERRFunction · 0.80
rest_headersFunction · 0.80
rest_blockFunction · 0.80
rest_chaininfoFunction · 0.80
rest_mempool_infoFunction · 0.80
rest_mempool_contentsFunction · 0.80
rest_txFunction · 0.80
rest_getutxosFunction · 0.80
JSONErrorReplyFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected