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

Function loadHttpServers

plugins/http/http-server.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void loadHttpServers(obs_data_t *obj)
96{
97 httpServers.clear();
98 auto array = obs_data_get_array(obj, "httpServers");
99 const size_t count = obs_data_array_count(array);
100 for (size_t i = 0; i < count; ++i) {
101 auto item = obs_data_array_item(array, i);
102 auto server = HttpServer::Create();
103 httpServers.emplace_back(server);
104 httpServers.back()->Load(item);
105 obs_data_release(item);
106 }
107 obs_data_array_release(array);
108}
109
110struct HttpServer::Impl {
111 std::unique_ptr<httplib::Server> server;

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected