Files
simple-object-server/src/put_handler.hpp
Your Name 52dcaada2d Tidy
2025-05-25 11:30:18 +12:00

21 lines
457 B
C++

#pragma once
#include <string>
#include <filesystem>
#include "server.hpp"
#include "httplib.hpp"
#include "json.hpp"
namespace simple_object_storage {
class PutHandler {
public:
PutHandler(Server& server);
void handle_put_object(const httplib::Request& req, httplib::Response& res);
private:
Server& server_;
void add_file_metadata(const std::string& file_path, nlohmann::json& metadata) const;
};
} // namespace simple_object_storage