spring-framework / org.springframework.web.socket / WebSocketExtension / parseExtensions

parseExtensions

open static fun parseExtensions(extensions: String): MutableList<WebSocketExtension>

Parse the given, comma-separated string into a list of WebSocketExtension objects.

This method can be used to parse a "Sec-WebSocket-Extension" header.

Parameters

extensions - the string to parse

Exceptions

IllegalArgumentException - if the string cannot be parsed

Return
the list of extensions