harness.http.server.ServerConfig.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-http-server_3 Show documentation
Show all versions of harness-http-server_3 Show documentation
Miscellaneous libraries/utilities for Scala.
package harness.http.server
import harness.cli.*
import zio.json.*
final case class ServerConfig(
port: Option[Int],
resDir: String,
useJarResource: Boolean,
ssl: Option[ServerConfig.SslConfig],
// TODO (KR) : Options relating to logging requests
)
object ServerConfig {
final case class SslConfig(
keyPath: String,
keyPassword: String,
)
object SslConfig {
implicit val jsonCodec: JsonCodec[SslConfig] = DeriveJsonCodec.gen
}
implicit val jsonCodec: JsonCodec[ServerConfig] = DeriveJsonCodec.gen
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy