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

spinoco.protocol.http.header.Cache-Control.scala Maven / Gradle / Ivy

The newest version!
package spinoco.protocol.http.header

import spinoco.protocol.http.header.value.{CacheDirective, HeaderCodecDefinition}
import spinoco.protocol.http.codec.helper.commaDelimitedMin

/**
  *   RFC 72314
  *
  *   @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
  */
sealed case class `Cache-Control`(value: List[CacheDirective]) extends DefaultHeader


object `Cache-Control` { val codec =
  HeaderCodecDefinition[`Cache-Control`](commaDelimitedMin(CacheDirective.codec, 1).xmap (`Cache-Control`.apply, _.value))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy