http_request::extract_json 方法

将请求消息的正文提取到 json 值,检查该内容类型是否为应用程序\json。 正文只能提取一次,因为在某些情况下优化位置为数据“移”出的位置。

pplx::task<json::value> extract_json() const;

返回值

此消息正文的 JSON 值。

要求

**标头:**http_msg.h

**命名空间:**web::http

请参见

参考

http_request 类