Package com.keygenqt.core.extension

Functions

Link copied to clipboard
fun HttpStatusCode.genException(message: String? = null, violation: Set<ConstraintViolation<*>>? = null): IDataException

Create exception

Link copied to clipboard
fun ApplicationCall.getNumberParam(key: String = "id"): Int

Get value from params with validate

Link copied to clipboard
fun ApplicationCall.getStringParam(key: String = "name"): String

Get value from params with validate

Link copied to clipboard
inline suspend fun <T : Any> ApplicationCall.receiveValidate(message: String? = null): T

Get request with validate