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

Method Get

src/i2p.cpp:283–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281// Private methods
282
283std::string Session::Reply::Get(const std::string& key) const
284{
285 const auto& pos = keys.find(key);
286 if (pos == keys.end() || !pos->second.has_value()) {
287 throw std::runtime_error(
288 strprintf("Missing %s= in the reply to \"%s\"", key, request));
289 }
290 return pos->second.value();
291}
292
293Session::Reply Session::SendRequestAndGetReply(const Sock& sock,
294 const std::string& request,

Callers 7

ConnectMethod · 0.45
DestGenerateMethod · 0.45
StreamAcceptMethod · 0.45
ReadImplMethod · 0.45
ExistsImplMethod · 0.45

Calls 4

findMethod · 0.80
endMethod · 0.45
has_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected