Package io.ktor.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 Config.tryGetString(path: String): String?

Get string property value for path or null if missing

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

Get list property value for path or null if missing