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

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

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

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

/**
  * Indications of websocket protocol extensions that client/server wants to speak.
  *
  * @param extensions List of extensions
  */
case class `Sec-WebSocket-Extensions`(extensions: List[String]) extends DefaultHeader


object `Sec-WebSocket-Extensions` { val codec =
  HeaderCodecDefinition[`Sec-WebSocket-Extensions`](commaDelimitedMin(trimmedAsciiToken, 1).xmap (`Sec-WebSocket-Extensions`.apply,_.extensions))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy