MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Stringify

Method Stringify

src/httpserver.cpp:344–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344std::string HTTPHeaders::Stringify() const
345{
346 std::string out;
347 for (const auto& [key, value] : m_headers) {
348 out += key + ": " + value + "\r\n";
349 }
350
351 // Headers are terminated by an empty line
352 out += "\r\n";
353
354 return out;
355}
356
357std::string HTTPResponse::StringifyHeaders() const
358{

Callers 2

StringifyHeadersMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64