17 lines
360 B
C++
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
|