17 lines
360 B
C++
Raw Normal View History

2025-03-07 02:25:53 +01:00
#include <seafire/protocol/rfc7231/accept.hxx>
namespace seafire::protocol::rfc7231
{
std::optional<media_range_t>
accept_t::
try_parse(std::vector<std::string> const& strings, std::error_code& ec)
{
if (strings.empty())
return std::nullopt;
return media_range_t::try_parse(strings, ec);
}
} // namespace seafire::protocol::rfc7231