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

spinoco.protocol.http.header.If-Modified-Since.scala Maven / Gradle / Ivy

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

import java.time.LocalDateTime

import spinoco.protocol.http.codec.helper._
import spinoco.protocol.http.header.value.HeaderCodecDefinition

/**
  *   RFC 7231 section 3.3
  *   @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
  */
sealed case class `If-Modified-Since`(value: LocalDateTime) extends DefaultHeader


object `If-Modified-Since` { val codec =
  HeaderCodecDefinition[`If-Modified-Since`](httpDateTimeCodec.xmap (`If-Modified-Since`.apply, _.value))
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy