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

Method FindFirst

src/httpserver.cpp:266–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264using util::Split;
265
266std::optional<std::string> HTTPHeaders::FindFirst(const std::string_view key) const
267{
268 for (const auto& item : m_headers) {
269 if (CaseInsensitiveEqual(key, item.first)) {
270 return item.second;
271 }
272 }
273 return std::nullopt;
274}
275
276std::vector<std::string_view> HTTPHeaders::FindAll(const std::string_view key) const
277{

Callers 4

LoadBodyMethod · 0.45
WriteReplyMethod · 0.45
GetHeaderMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

CaseInsensitiveEqualFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36