MCPcopy Create free account
hub / github.com/LUX-Core/lux / WriteHeader

Method WriteHeader

src/httpserver.cpp:642–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void HTTPRequest::WriteHeader(const std::string& hdr, const std::string& value)
643{
644 struct evkeyvalq* headers = evhttp_request_get_output_headers(req);
645 assert(headers);
646 evhttp_add_header(headers, hdr.c_str(), value.c_str());
647}
648
649void HTTPRequest::ChunkEnd() {
650 assert(startedChunkTransfer && !replySent);

Callers 9

RESTERRFunction · 0.80
rest_headersFunction · 0.80
rest_blockFunction · 0.80
rest_chaininfoFunction · 0.80
rest_txFunction · 0.80
rest_getutxosFunction · 0.80
JSONErrorReplyFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80
PollStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected