#ifndef seafire__protocol__rfc7230__connection_hxx_ #define seafire__protocol__rfc7230__connection_hxx_ #include #include #include #include #include namespace seafire::protocol::rfc7230 { /// Represents the HTTP `connection` header. /// class connection_t { public: static constexpr char const name[] = "connection"; connection_t(std::set); connection_t(std::initializer_list); std::set const& tokens() const; bool close() const; bool keep_alive() const; bool upgrade() const; static std::optional try_parse(std::vector const&, std::error_code&); private: std::set tokens_; }; std::string to_string(connection_t const&); } // namespace seafire::protocol::rfc7230 #endif