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

Method FindFirst

src/bitcoin-cli.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131std::optional<std::string> HTTPResponseHeaders::FindFirst(std::string_view key) const
132{
133 for (const auto& item : m_headers) {
134 if (CaseInsensitiveEqual(key, item.first)) {
135 return item.second;
136 }
137 }
138 return std::nullopt;
139}
140
141static void SetupCliArgs(ArgsManager& argsman)
142{

Callers 1

ReadResponseMethod · 0.45

Calls 1

CaseInsensitiveEqualFunction · 0.85

Tested by

no test coverage detected