refactor s3 provider
This commit is contained in:
		| @@ -27,14 +27,17 @@ | ||||
|  | ||||
| namespace repertory::curl::requests { | ||||
| struct http_put_file final : http_request_base { | ||||
|   http_put_file() = default; | ||||
|   http_put_file(const http_put_file &) = default; | ||||
|   http_put_file(http_put_file &&) = default; | ||||
|  | ||||
|   auto operator=(const http_put_file &) -> http_put_file & = default; | ||||
|   auto operator=(http_put_file &&) -> http_put_file & = default; | ||||
|  | ||||
|   ~http_put_file() override = default; | ||||
|  | ||||
|   std::optional<std::string> encryption_token{}; | ||||
|   std::string file_name{}; | ||||
|   mutable std::shared_ptr<utils::encryption::encrypting_reader> reader{}; | ||||
|   std::string source_path{}; | ||||
|  | ||||
|   [[nodiscard]] auto get_path() const -> std::string override; | ||||
|   std::shared_ptr<utils::encryption::encrypting_reader> reader; | ||||
|   std::string source_path; | ||||
|  | ||||
|   [[nodiscard]] auto set_method(CURL *curl, stop_type &stop_requested) const | ||||
|       -> bool override; | ||||
|   | ||||
| @@ -54,8 +54,10 @@ struct http_request_base { | ||||
|   http_request_base() = default; | ||||
|   http_request_base(const http_request_base &) = default; | ||||
|   http_request_base(http_request_base &&) = default; | ||||
|  | ||||
|   auto operator=(const http_request_base &) -> http_request_base & = default; | ||||
|   auto operator=(http_request_base &&) -> http_request_base & = default; | ||||
|  | ||||
|   virtual ~http_request_base() = default; | ||||
|  | ||||
|   bool allow_timeout{}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user