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
Functions
Link copied to clipboard
fun createKtorServer( host: String = "localhost", port: Int = Random.nextInt(1024, 65535), additionalEngineEnvironmentConfigurator: <Error class: unknown class>.() -> Unit = {}, additionalConfigurationConfigurator: <Error class: unknown class>.() -> Unit = {}, block: <Error class: unknown class>.() -> Unit): <Error class: unknown class>
Content copied to clipboard
fun createKtorServer( host: String = "localhost", port: Int = Random.nextInt(1024, 65535), configurators: List<KtorApplicationConfigurator>, additionalEngineEnvironmentConfigurator: <Error class: unknown class>.() -> Unit = {}, additionalConfigurationConfigurator: <Error class: unknown class>.() -> Unit = {}): <Error class: unknown class>
Content copied to clipboard
Create server with CIO server engine without starting of it
fun <TEngine, TConfiguration> createKtorServer( engine: <Error class: unknown class><TEngine, TConfiguration>, host: String = "localhost", port: Int = Random.nextInt(1024, 65535), additionalEngineEnvironmentConfigurator: <Error class: unknown class>.() -> Unit = {}, additionalConfigurationConfigurator: TConfiguration.() -> Unit = {}, block: <Error class: unknown class>.() -> Unit): TEngine
Content copied to clipboard
fun <TEngine, TConfiguration> createKtorServer( engine: <Error class: unknown class><TEngine, TConfiguration>, host: String = "localhost", port: Int = Random.nextInt(1024, 65535), additionalEngineEnvironmentConfigurator: <Error class: unknown class>.() -> Unit = {}, additionalConfigurationConfigurator: TConfiguration.() -> Unit = {}, configurators: List<KtorApplicationConfigurator>): TEngine
Content copied to clipboard
Link copied to clipboard
suspend fun <Error class: unknown class>.getParameterOrSendError(field: String): <Error class: unknown class>
Content copied to clipboard
Link copied to clipboard
fun <Error class: unknown class>.getQueryParameter(field: String): <Error class: unknown class>
Content copied to clipboard
Link copied to clipboard
suspend fun <Error class: unknown class>.getQueryParameterOrSendError(field: String): <Error class: unknown class>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <Error class: unknown class>.uniloadMultipart( onFormItem: (<Error class: unknown class>) -> Unit = {}, onCustomFileItem: (<Error class: unknown class>) -> Unit = {}, onBinaryChannelItem: (<Error class: unknown class>) -> Unit = {}, onBinaryContent: (<Error class: unknown class>) -> Unit = {}): <Error class: unknown class>
Content copied to clipboard
Link copied to clipboard
suspend fun <Error class: unknown class>.uniloadMultipartFile( onFormItem: (<Error class: unknown class>) -> Unit = {}, onCustomFileItem: (<Error class: unknown class>) -> Unit = {}, onBinaryChannelItem: (<Error class: unknown class>) -> Unit = {}, onBinaryContent: (<Error class: unknown class>) -> Unit = {}): <Error class: unknown class>
Content copied to clipboard