send

inline suspend fun <T : Any> send(data: T, status: HttpStatusCode = HttpStatusCode.OK)

Sends the specified data as a JSON response with a specified status code.

Parameters

data

The data to send in the response.

status

The HTTP status code to return. Default is 200 OK.