#ifndef seafire__protocol__rfc7232__if_match_hxx_ #define seafire__protocol__rfc7232__if_match_hxx_ #include #include #include #include #include #include #include #include #include namespace seafire::protocol::rfc7232 { class if_match_t { public: static constexpr char const name[] = "if-match"; struct anything_t {}; static constexpr anything_t anything{}; if_match_t(anything_t); if_match_t(std::vector); bool is_anything() const; std::vector const& tags() const; static std::optional try_parse(std::vector const&, std::error_code&); private: std::variant< anything_t, std::vector > value_; }; std::string to_string(if_match_t const&); } // namespace seafire::protocol::rfc7232 #include #endif