SecWebSocketKey

scamper.http.websocket.SecWebSocketKey
final class SecWebSocketKey(request: HttpRequest) extends AnyVal

Adds standardized access to Sec-WebSocket-Key header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasSecWebSocketKey: Boolean

Tests for Sec-WebSocket-Key header.

Tests for Sec-WebSocket-Key header.

Attributes

def secWebSocketKey: String

Gets Sec-WebSocket-Key header value.

Gets Sec-WebSocket-Key header value.

Attributes

Throws
HeaderNotFound

if Sec-WebSocket-Key is not present

def secWebSocketKeyOption: Option[String]

Gets Sec-WebSocket-Key header value if present.

Gets Sec-WebSocket-Key header value if present.

Attributes

Creates new request with Sec-WebSocket-Key header removed.

Creates new request with Sec-WebSocket-Key header removed.

Attributes

def setSecWebSocketKey(value: String): HttpRequest

Creates new request with Sec-WebSocket-Key header set to supplied value.

Creates new request with Sec-WebSocket-Key header set to supplied value.

Attributes