[英]How to response with MIME code on oat++ endpoint
如何在端點響應上設置 MIME 代碼?
我沒有看到有關可用的文檔。
它在端點信息中。
您只需要在響應中添加一個Content-Type
標頭:
auto response = createResponse(Status::CODE_200, "OK");
response->putHeader("Content-Type", "image/jpeg");
return response;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.