MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / getWsUploadStatus

Method getWsUploadStatus

src/network/CrossPointWebServer.cpp:324–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324CrossPointWebServer::WsUploadStatus CrossPointWebServer::getWsUploadStatus() const {
325 WsUploadStatus status;
326 status.inProgress = wsUploadInProgress;
327 status.received = wsUploadReceived;
328 status.total = wsUploadSize;
329 status.filename = wsUploadFileName.c_str();
330 status.lastCompleteName = wsLastCompleteName.c_str();
331 status.lastCompleteSize = wsLastCompleteSize;
332 status.lastCompleteAt = wsLastCompleteAt;
333 return status;
334}
335
336static void sendHtmlContent(WebServer* server, const char* data, size_t len) {
337 server->sendHeader("Content-Encoding", "gzip");

Callers 1

loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected