
com.github.kondaurovdev.http_client.config.HttpClientConfig.scala Maven / Gradle / Ivy
The newest version!
package com.github.kondaurovdev.http_client.config
import com.github.kondaurovdev.core.ResourceHelper
import play.api.libs.json.{JsValue, Json}
object HttpClientConfig {
def get(key: String): Either[JsValue, HttpClientConfig] = {
ResourceHelper.getConfig[HttpClientConfig](key)(format)
}
implicit val format = Json.format[HttpClientConfig]
}
case class HttpClientConfig(
host: String,
login: String,
password: String)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy