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

spinoco.protocol.http.header.User-Agent.scala Maven / Gradle / Ivy

package spinoco.protocol.http.header

import spinoco.protocol.http.header.value.{AgentVersion, HeaderCodecDefinition}


/**
  *   RFC 7231 5.5.3
  *
  *   @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
  */
sealed case class `User-Agent`(value: AgentVersion) extends DefaultHeader

object `User-Agent` { val codec =
  HeaderCodecDefinition[`User-Agent`](AgentVersion.codec.xmap (`User-Agent`.apply, _.value))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy