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

Method SetServer

plugins/http/macro-condition-http.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void MacroConditionHttp::SetServer(const std::string &name)
51{
52 _server = GetWeakHttpServerByName(name);
53 auto server = _server.lock();
54 if (!server) {
55 _requestBuffer.reset();
56 return;
57 }
58 _requestBuffer = server->RegisterForRequests();
59}
60
61bool MacroConditionHttp::CheckCondition()
62{

Callers 2

UpdateEntryDataMethod · 0.45
ServerChangedMethod · 0.45

Calls 3

GetWeakHttpServerByNameFunction · 0.85
RegisterForRequestsMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected