We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前的定义是: enum class content_type { string, multipart, urlencoded, chunked, octet_stream, websocket, unknown, }; 没有找到设置content type的接口,如果想设application/xml或者image/png这样的类型怎么办?
enum class content_type { string, multipart, urlencoded, chunked, octet_stream, websocket, unknown, };
The text was updated successfully, but these errors were encountered:
可以扩展一下哈,你能提一个pr把额外的这些content-type加上吗?
Sorry, something went wrong.
设置response的content-type可以通过resp.add_header("Content-Type", "application/octet-stream");
这种方式添加。
No branches or pull requests
目前的定义是:
enum class content_type { string, multipart, urlencoded, chunked, octet_stream, websocket, unknown, };
没有找到设置content type的接口,如果想设application/xml或者image/png这样的类型怎么办?
The text was updated successfully, but these errors were encountered: