qicosmos / cinatra

modern c++(c++20), cross-platform, header-only, easy to use http framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如何设置cinatra::response的content-type呢?内置的类型远远不够

qianxiaoming opened this issue · comments

目前的定义是:
enum class content_type { string, multipart, urlencoded, chunked, octet_stream, websocket, unknown, };
没有找到设置content type的接口,如果想设application/xml或者image/png这样的类型怎么办?

可以扩展一下哈,你能提一个pr把额外的这些content-type加上吗?