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

spinoco.protocol.http.header.Sec-WebSocket-Version.scala Maven / Gradle / Ivy

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


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

/**
  * A Websocket header indicating websocket protocol version.
  *
  * @param version Version value
  */
case class `Sec-WebSocket-Version`(version: Int) extends DefaultHeader


object `Sec-WebSocket-Version` { val codec =
  HeaderCodecDefinition[`Sec-WebSocket-Version`](intAsString.xmap (`Sec-WebSocket-Version`.apply,_.version))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy