69,371
社区成员
发帖
与我相关
我的任务
分享
struct mg_connection *c;
/* 省略代码 */
mg_send_head(c, 200, strlen(content), "Connection: close\r\nContent-Type: application/json; charset=utf-8");
c->flags |= MG_F_SEND_AND_CLOSE;
mg_send(c, content, strlen(content));