respond With Result
inline suspend fun <T : Any> PipelineContext<Unit, ApplicationCall>.respondWithResult(result: ApiResult<T>)(source)
Responds to a call, using the given ApiResult. If an OutOfMemoryError occurs during serialization, it will be reported to the client as a 507 status code.
Receiver
The ApplicationCall that will receive the response.
Author
Jan Müller
Parameters
T
Reified type of the data for successful responses.
result
The ApiResult used for the response.