| 86 | } |
| 87 | |
| 88 | void 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 | |
| 103 | void WebServer::onServerStarted(quint16 port) |
| 104 | { |
nothing calls this directly
no test coverage detected