Package dev. inmo. micro_utils. ktor. server
Types
Unified Router
Link copied to clipboard
class UnifiedRouter(serialFormat: StandardKtorSerialFormat, serialFormatContentType: <ERROR CLASS>)
Content copied to clipboard
Functions
create Ktor Server
Link copied to clipboard
fun createKtorServer(host: String = "localhost", port: Int = Random.nextInt(1024, 65535), block: <ERROR CLASS>.() -> Unit): <ERROR CLASS>
Content copied to clipboard
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
Content copied to clipboard
decode Url Query Value
Link copied to clipboard
fun <T> <ERROR CLASS>.decodeUrlQueryValue(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
Content copied to clipboard
decode Url Query Value Or Send Error
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.decodeUrlQueryValueOrSendError(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
Content copied to clipboard
get Parameter Or Send Error
Link copied to clipboard
suspend fun <ERROR CLASS>.getParameterOrSendError(field: String): <ERROR CLASS>
Content copied to clipboard
get Query Parameter
Link copied to clipboard
get Query Parameter Or Send Error
Link copied to clipboard
suspend fun <ERROR CLASS>.getQueryParameterOrSendError(field: String): <ERROR CLASS>
Content copied to clipboard
include Websocket Handling
Link copied to clipboard
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, converter: (T) -> StandardKtorSerialInputData)
Content copied to clipboard
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, serializer: SerializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
Properties
defaultUnifiedRouter
Link copied to clipboard
extractFromToDateTime
Link copied to clipboard
standardKtorSerialFormatContentType
Link copied to clipboard