#ifndef seafire__protocol__rfc7231__server_hxx_ #define seafire__protocol__rfc7231__server_hxx_ #include #include #include namespace seafire::protocol::rfc7231 { struct server_t { using alias_type = products_t; static constexpr const char* name = "server"; static std::optional try_parse(std::vector const& strings) { if (auto it = strings.rbegin(); it != strings.rend()) return try_parse_products(*it); return {}; } static std::optional try_parse(std::vector const& strings, std::error_code& ec) { if (auto it = strings.rbegin(); it != strings.rend()) return try_parse_products(*it, ec); return {}; } }; } // namespace seafire::protocol::rfc7231 #endif