SecWebSocketKey

final implicit class SecWebSocketKey(request: HttpRequest) extends AnyVal

Provides standardized access to Sec-WebSocket-Key header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def getSecWebSocketKey: Option[String]

Gets Sec-WebSocket-Key header value if present.

Gets Sec-WebSocket-Key header value if present.

def hasSecWebSocketKey: Boolean

Tests for Sec-WebSocket-Key header.

Tests for Sec-WebSocket-Key header.

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

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

def secWebSocketKey: String

Gets Sec-WebSocket-Key header value.

Gets Sec-WebSocket-Key header value.

Throws:
HeaderNotFound

if Sec-WebSocket-Key is not present

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.