SecWebSocketProtocol

scamper.http.websocket.SecWebSocketProtocol
final class SecWebSocketProtocol[T <: HttpMessage](message: T) extends AnyVal

Adds standardized access to Sec-WebSocket-Protocol header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

Tests for Sec-WebSocket-Protocol header.

Tests for Sec-WebSocket-Protocol header.

Attributes

def secWebSocketProtocol: Seq[String]

Gets Sec-WebSocket-Protocol header values.

Gets Sec-WebSocket-Protocol header values.

Attributes

Throws
HeaderNotFound

if Sec-WebSocket-Protocol is not present

def secWebSocketProtocolOption: Option[Seq[String]]

Gets Sec-WebSocket-Protocol header values if present.

Gets Sec-WebSocket-Protocol header values if present.

Attributes

Creates new message with Sec-WebSocket-Protocol header removed.

Creates new message with Sec-WebSocket-Protocol header removed.

Attributes

def setSecWebSocketProtocol(values: Seq[String]): T

Creates new message with Sec-WebSocket-Protocol header set to supplied values.

Creates new message with Sec-WebSocket-Protocol header set to supplied values.

Attributes

def setSecWebSocketProtocol(one: String, more: String*): T

Creates new message with Sec-WebSocket-Protocol header set to supplied values.

Creates new message with Sec-WebSocket-Protocol header set to supplied values.

Attributes