MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / onInitRequestNeedsReply

Method onInitRequestNeedsReply

sources/webserver/WebServer.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void WebServer::onInitRequestNeedsReply(QtHttpRequest* request, QtHttpReply* reply)
89{
90 if (_staticFileServing == nullptr)
91 {
92 _staticFileServing = globalStaticFileServing.lock();
93 if (_staticFileServing == nullptr)
94 {
95 _staticFileServing = std::make_shared<FileServer>();
96 globalStaticFileServing = _staticFileServing;
97 }
98 }
99
100 _staticFileServing->onRequestNeedsReply(request, reply);
101}
102
103void WebServer::onServerStarted(quint16 port)
104{

Callers

nothing calls this directly

Calls 1

onRequestNeedsReplyMethod · 0.80

Tested by

no test coverage detected