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

◆ makeOutgoingResponse() [1/3]

OutgoingResponse Ice::makeOutgoingResponse ( bool ok,
std::pair< const std::byte *, const std::byte * > encapsulation,
const Current & current )
noexcept

Creates an OutgoingResponse object with ReplyStatus::Ok or ReplyStatus::UserException.

Parameters
okWhen true, the reply status is ReplyStatus::Ok. When false, the reply status is ReplyStatus::UserException.
encapsulationThe payload-encapsulation of the response or the user exception. It should be encoded using Current::encoding but this function does not verify it.
currentA reference to the Current object of the request.
Returns
The new response.