org.http4k.config.extensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-config Show documentation
Show all versions of http4k-config Show documentation
Machinery for configuring Http4k apps in a typesafe way
The newest version!
package org.http4k.config
import org.http4k.format.JacksonYaml
import java.io.File
import java.io.FileNotFoundException
import java.io.InputStreamReader
import java.util.Properties
/**
* Read a YAML file into environments, prepending all of the nested levels into the property names
*/
fun Environment.Companion.fromYaml(file: File): Environment {
val map = JacksonYaml.asA
© 2015 - 2024 Weber Informatics LLC | Privacy Policy