Package dev. inmo. micro_utils. ktor. server
Types
Link copied to clipboard
class TemporalFilesRoutingConfigurator( subpath: String = DefaultTemporalFilesSubPath, unifiedRouter: UnifiedRouter = UnifiedRouter.default, temporalFilesUtilizer: TemporalFilesRoutingConfigurator.TemporalFilesUtilizer = TemporalFilesUtilizer) : ApplicationRoutingConfigurator.Element
Content copied to clipboard
Link copied to clipboard
class UnifiedRouter(val serialFormat: <ERROR CLASS> = standardKtorSerialFormat, val serialFormatContentType: <ERROR CLASS> = standardKtorSerialFormatContentType)
Content copied to clipboard
Functions
Link copied to clipboard
fun createKtorServer( host: String = "localhost", port: Int = Random.nextInt(1024, 65535), additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {}, additionalConfigurationConfigurator: <ERROR CLASS>.() -> Unit = {}, block: <ERROR CLASS>.() -> Unit): <ERROR CLASS>
Content copied to clipboard
fun createKtorServer( host: String = "localhost", port: Int = Random.nextInt(1024, 65535), configurators: List<KtorApplicationConfigurator>, additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {}, additionalConfigurationConfigurator: <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), additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {}, additionalConfigurationConfigurator: TConfiguration.() -> Unit = {}, 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), additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {}, additionalConfigurationConfigurator: TConfiguration.() -> Unit = {}, configurators: List<KtorApplicationConfigurator>): TEngine
Content copied to clipboard
Link copied to clipboard
fun <T> <ERROR CLASS>.decodeUrlQueryValue(field: String, deserializer: <ERROR CLASS><T>): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard
suspend fun <T> <ERROR CLASS>.decodeUrlQueryValueOrSendError(field: String, deserializer: <ERROR CLASS><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
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