Package dev. inmo. micro_utils. ktor. server
Types
Link copied to clipboard
class UnifiedRouter(serialFormat: StandardKtorSerialFormat, serialFormatContentType: <ERROR CLASS>)
Content copied to clipboard
Functions
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
fun createKtorServer(host: String = "localhost", port: Int = Random.nextInt(1024, 65535), configurators: List<KtorApplicationConfigurator>): <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
fun <TEngine, TConfiguration> createKtorServer(engine: <ERROR CLASS><TEngine, TConfiguration>, host: String = "localhost", port: Int = Random.nextInt(1024, 65535), configurators: List<KtorApplicationConfigurator>): TEngine
Content copied to clipboard
Link copied to clipboard
fun <T> <ERROR CLASS>.decodeUrlQueryValue(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.decodeUrlQueryValueOrSendError(field: String, deserializer: DeserializationStrategy<T>): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
suspend fun <ERROR CLASS>.getParameterOrSendError(field: String): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <ERROR CLASS>.getQueryParameterOrSendError(field: String): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, protocol: <ERROR CLASS> = URLProtocol.WS, converter: suspend <ERROR CLASS>.(T) -> StandardKtorSerialInputData?)
Content copied to clipboard
fun <T> <ERROR CLASS>.includeWebsocketHandling(suburl: String, flow: Flow<T>, serializer: SerializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, protocol: <ERROR CLASS> = URLProtocol.WS, filter: suspend <ERROR CLASS>.(T) -> Boolean? = null): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
suspend fun <ERROR CLASS>.uniloadMultipart(onFormItem: (<ERROR CLASS>) -> Unit = {}, onCustomFileItem: (<ERROR CLASS>) -> Unit = {}, onBinaryContent: (<ERROR CLASS>) -> Unit = {}): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
suspend fun <ERROR CLASS>.uniloadMultipartFile(onFormItem: (<ERROR CLASS>) -> Unit = {}, onCustomFileItem: (<ERROR CLASS>) -> Unit = {}, onBinaryContent: (<ERROR CLASS>) -> Unit = {}): <ERROR CLASS>
Content copied to clipboard