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

Method FindAll

src/httpserver.cpp:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276std::vector<std::string_view> HTTPHeaders::FindAll(const std::string_view key) const
277{
278 std::vector<std::string_view> ret;
279 for (const auto& item : m_headers) {
280 if (CaseInsensitiveEqual(key, item.first)) {
281 ret.push_back(item.second);
282 }
283 }
284 return ret;
285}
286
287void HTTPHeaders::Write(std::string&& key, std::string&& value)
288{

Callers 2

LoadBodyMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

CaseInsensitiveEqualFunction · 0.85
push_backMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64