2025-03-07 22:15:49 +01:00

17 lines
360 B
C++

#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