All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.youi.http.BooleanHeaderKey.scala Maven / Gradle / Ivy

The newest version!
package io.youi.http

class BooleanHeaderKey(val key: String, val commaSeparated: Boolean = true) extends TypedHeaderKey[Boolean] {
  override def value(headers: Headers): Option[Boolean] = get(headers).map(_.toBoolean)

  override def apply(value: Boolean): Header = Header(this, value.toString)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy