Share via


http_response::extract_string Method

Extracts the body of the response 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() const;

Return Value

String containing body of the message.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_response Class