Package dev.inmo.micro_utils.ktor.server

Types

UnifiedRouter
Link copied to clipboard
class UnifiedRouter(serialFormat: StandardKtorSerialFormat, serialFormatContentType: <ERROR CLASS>)

Functions

createKtorServer
Link copied to clipboard
fun createKtorServer(host: String = "localhost", port: Int = Random.nextInt(1024, 65535), block: <ERROR CLASS>.() -> Unit): <ERROR CLASS>

Create server with CIO server engine without starting of it

fun <TEngine, TConfiguration> createKtorServer(engine: <ERROR CLASS><TEngine, TConfiguration>, host: String = "localhost", port: Int = Random.nextInt(1024, 65535), block: <ERROR CLASS>.() -> Unit): TEngine
decodeUrlQueryValue
Link copied to clipboard
fun <T> <ERROR CLASS>.decodeUrlQueryValue(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
decodeUrlQueryValueOrSendError
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.decodeUrlQueryValueOrSendError(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
getParameterOrSendError
Link copied to clipboard
suspend fun <ERROR CLASS>.getParameterOrSendError(field: String): <ERROR CLASS>
getQueryParameter
Link copied to clipboard
fun <ERROR CLASS>.getQueryParameter(field: String): <ERROR CLASS>
getQueryParameterOrSendError
Link copied to clipboard
suspend fun <ERROR CLASS>.getQueryParameterOrSendError(field: String): <ERROR CLASS>
includeWebsocketHandling
Link copied to clipboard
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, converter: (T) -> StandardKtorSerialInputData)
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, serializer: SerializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
unianswer
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.unianswer(answerSerializer: SerializationStrategy<T>, answer: T)
uniload
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.uniload(deserializer: DeserializationStrategy<T>): <ERROR CLASS>

Properties

defaultUnifiedRouter
Link copied to clipboard
val defaultUnifiedRouter: UnifiedRouter
extractFromToDateTime
Link copied to clipboard
val <ERROR CLASS>.extractFromToDateTime: FromToDateTime
standardKtorSerialFormatContentType
Link copied to clipboard
val standardKtorSerialFormatContentType: <ERROR CLASS>