#ifndef CPR_BODY_H #define CPR_BODY_H #include #include #include "cpr/cprtypes.h" namespace cpr { class Body : public StringHolder { public: Body() : StringHolder() {} // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) Body(const std::string& body) : StringHolder(body) {} // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) Body(std::string&& body) : StringHolder(std::move(body)) {} // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) Body(const char* body) : StringHolder(body) {} Body(const char* str, size_t len) : StringHolder(str, len) {} Body(const std::initializer_list args) : StringHolder(args) {} Body(const Body& other) = default; Body(Body&& old) noexcept = default; ~Body() override = default; Body& operator=(Body&& old) noexcept = default; Body& operator=(const Body& other) = default; }; } // namespace cpr #endif