22#include "anch-codec-export.hpp"
52 std::map<std::string, std::string> _parameters;
66 MediaType(std::string_view type, std::string_view subtype);
78 static std::optional<anch::codec::MediaType>
parse(std::string_view value);
89 static std::vector<anch::codec::MediaType>
parseAccept(std::string_view value);
162 std::optional<std::string_view>
getParameter(std::string_view name) const;
200 inline constexpr std::string_view
APP_JSON =
"application/json";
206 inline constexpr std::string_view
APP_XML =
"application/xml";
210 inline constexpr std::string_view
TEXT_CSV =
"text/csv";
212 inline constexpr std::string_view
TEXT_HTML =
"text/html";
AnCH codec library namespace.
Definition csv.hpp:31
std::optional< std::size_t > negotiate(const std::vector< anch::codec::MediaType > &accept, const std::vector< anch::codec::MediaType > &available)
AnCH framework base namespace.
Definition app.hpp:30