DefaultKtorApplication

A basic implementation of KtorApplication that uses sane defaults.

This implementation sets up the following (including via DefaultAppDefaultsModule):

  • 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
constructor(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
Link copied to clipboard
open override val settings: KtorApplicationSettings<NettyApplicationEngine, NettyApplicationEngine.Configuration>