MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetHttpServerByName

Function GetHttpServerByName

plugins/http/http-server.cpp:241–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241HttpServer *GetHttpServerByName(const std::string &name)
242{
243 for (auto &s : httpServers) {
244 if (s->Name() == name) {
245 return dynamic_cast<HttpServer *>(s.get());
246 }
247 }
248 return nullptr;
249}
250
251std::weak_ptr<HttpServer> GetWeakHttpServerByName(const std::string &name)
252{

Callers 3

ServerNameAvailableFunction · 0.85
SetServerMethod · 0.85
setupTabFunction · 0.85

Calls 2

NameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected