Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ makeOutgoingResponse() [2/3]

OutgoingResponse Ice::makeOutgoingResponse ( const std::function< void(OutputStream *)> & marshal,
const Current & current,
std::optional< FormatType > format = std::nullopt )
noexcept

Creates an OutgoingResponse object with ReplyStatus::Ok.

Parameters
marshalA function that writes the payload of the response to the output stream.
currentThe Current object of the incoming request.
formatThe class format to use when marshaling the response.
Returns
The new response.