DefaultKtorApplication

open class DefaultKtorApplication(scope: InjectionScope) : KtorApplication

A basic implementation of KtorApplication that uses sane defaults.

This implementation sets up the following:

  • Adds the ContentNegotiation feature to the application with Jackson (and sets up the JavaTimeModule on Jackson)

  • Uses Netty as the server backend

  • Uses the WebConfiguration to configure the host and port of the application

Constructors

Link copied to clipboard
fun DefaultKtorApplication(scope: InjectionScope)

Functions

Link copied to clipboard
open suspend override fun start()
Link copied to clipboard
open suspend override fun stop()

Properties

Link copied to clipboard
val appName: String?
Link copied to clipboard
open override val settings: KtorApplicationSettings<NettyApplicationEngine, NettyApplicationEngine.Configuration>