共用方式為


http_request::set_response_stream Method

Defines a stream that will be relied on to hold the body of the HTTP response message that results from the request.

void set_response_stream(
   concurrency::streams::ostream stream
);

Parameters

  • stream
    A writable, open asynchronous stream.

Remarks

If this function is called, the body of the response should not be accessed in any other way.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_request Class