WebSocketExtensionHeader

class WebSocketExtensionHeader

Parsed Sec-WebSocket-Accept header item representation.

Parameters

name - is extension name.

parameters - is list of extension parameters.

Constructors

<init>

WebSocketExtensionHeader(
    name: String,
    parameters: List<String>)

Parsed Sec-WebSocket-Accept header item representation.

Properties

name

val name: String

is extension name.

parameters

val parameters: List<String>

is list of extension parameters.

Functions

parseParameters

fun parseParameters(): Sequence<Pair<String, String>>

Parse parameters keys and values

toString

fun toString(): String