Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

http_response::body Method

Produces a stream which the caller may use to retrieve data from an incoming request.

concurrency::streams::istream body() const;

A readable, open asynchronous stream.

This cannot be used in conjunction with any other means of getting the body of the request. It is not necessary to wait until the message has been sent before starting to write to the stream, but it is advisable to do so, since it will allow the network I/O to start earlier and the work of sending data can be overlapped with the production of more data.

Header: http_msg.h

Namespace: web::http

© 2015 Microsoft