|
noexcept |
Creates an OutgoingResponse object with ReplyStatus::Ok or ReplyStatus::UserException.
ok | When true, the reply status is ReplyStatus::Ok. When false, the reply status is ReplyStatus::UserException. |
encapsulation | The payload-encapsulation of the response or the user exception. It should be encoded using Current::encoding but this function does not verify it. |
current | A reference to the Current object of the request. |