http_request::extract_string Method

Extract the body of the request message as a string value, checking that the content type is a MIME text type. A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.

pplx::task<utility::string_t> extract_string();

Return Value

String containing body of the message.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_request Class