Package io.ktor.server.config

Types

Link copied to clipboard
interface ApplicationConfig

Represents an application config node

Link copied to clipboard
class ApplicationConfigurationException(message: String) : Exception

Thrown when an application is misconfigured

Link copied to clipboard
interface ApplicationConfigValue

Represents an application config value

Link copied to clipboard
open class HoconApplicationConfig(config: Config) : ApplicationConfig

Implements ApplicationConfig by loading configuration from HOCON data structures

Link copied to clipboard
open class MapApplicationConfig : ApplicationConfig

Mutable application config backed by a hash map

Functions

Link copied to clipboard
fun ApplicationConfig(configPath: String?): ApplicationConfig

Returns ApplicationConfig by loading configuration from a resource specified by configPath or a default resource if configPath is null

Link copied to clipboard
fun ApplicationConfig.tryGetString(key: String): String?
fun Config.tryGetString(path: String): String?

Returns a string value for path or null if missing

Link copied to clipboard
fun ApplicationConfig.tryGetStringList(key: String): List<String>?
fun Config.tryGetStringList(path: String): List<String>?

Returns a list of values for path or null if missing