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

Method GetHeader

src/httpserver.cpp:667–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667std::pair<bool, std::string> HTTPRequest::GetHeader(const std::string_view hdr) const
668{
669 std::optional<std::string> found{m_headers.FindFirst(hdr)};
670 return std::pair{found.has_value(), std::move(found).value_or("")};
671}
672
673void HTTPRequest::WriteHeader(std::string&& hdr, std::string&& value)
674{

Callers 1

HTTPReq_JSONRPCFunction · 0.45

Calls 3

FindFirstMethod · 0.45
has_valueMethod · 0.45
value_orMethod · 0.45

Tested by

no test coverage detected