respondWithResult

Responds to a call using the Result and its status code. Uses the data for Result.Successes and error for Result.Failures.

Author

Jan Müller

Parameters

<receiver>
The target call.
result
The Result used for responding.
suspend fun ApplicationCall.respondWithResult(result: Result<*>)