MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / WriteHeader

Method WriteHeader

src/rpc/core/httpserver.cpp:567–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void HTTPRequest::WriteHeader(const std::string& hdr, const std::string& value) {
568 struct evkeyvalq* headers = evhttp_request_get_output_headers(req);
569 assert(headers);
570 evhttp_add_header(headers, hdr.c_str(), value.c_str());
571}
572
573/** Closure sent to main thread to request a reply to be sent to
574 * a HTTP request.

Callers 2

ErrorReplyFunction · 0.80
JsonRPCHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected