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

Method RemoveAll

src/httpserver.cpp:292–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void HTTPHeaders::RemoveAll(std::string_view key)
293{
294 auto moved = std::ranges::remove_if(m_headers, [key] (auto& pair) {
295 return CaseInsensitiveEqual(key, pair.first);
296 });
297 m_headers.erase(moved.begin(), moved.end());
298}
299
300bool HTTPHeaders::Read(util::LineReader& reader)
301{

Callers 4

WriteReplyMethod · 0.80
AppInitMainFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 4

CaseInsensitiveEqualFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64