Rewrite warnings provider to use HEAD requests instead of directory listing to find recent warnings

This commit is contained in:
Dan Paulat 2025-02-01 00:25:00 -06:00
parent 6ecb3f6ffb
commit 87af6479d6
3 changed files with 208 additions and 147 deletions

View file

@ -22,10 +22,8 @@ public:
WarningsProvider(WarningsProvider&&) noexcept;
WarningsProvider& operator=(WarningsProvider&&) noexcept;
std::pair<size_t, size_t>
ListFiles(std::chrono::system_clock::time_point newerThan = {});
std::vector<std::shared_ptr<awips::TextProductFile>>
LoadUpdatedFiles(std::chrono::system_clock::time_point newerThan = {});
LoadUpdatedFiles(std::chrono::sys_time<std::chrono::hours> newerThan = {});
private:
class Impl;