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

Method WriteHeader

src/httpserver.cpp:556–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 14

RESTERRFunction · 0.80
rest_headersFunction · 0.80
rest_blockFunction · 0.80
rest_filter_headerFunction · 0.80
rest_block_filterFunction · 0.80
rest_chaininfoFunction · 0.80
rest_mempool_infoFunction · 0.80
rest_mempool_contentsFunction · 0.80
rest_txFunction · 0.80
rest_getutxosFunction · 0.80
rest_blockhash_by_heightFunction · 0.80
JSONErrorReplyFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.64