WebSocketResponse

@Serializable
data class WebSocketResponse(val status: Int, val statusText: String, val headers: Headers, val headersText: String? = null, val requestHeaders: Headers? = null, val requestHeadersText: String? = null)

WebSocket response data.

Official doc

Constructors

Link copied to clipboard
constructor(status: Int, statusText: String, headers: Headers, headersText: String? = null, requestHeaders: Headers? = null, requestHeadersText: String? = null)

Properties

Link copied to clipboard

HTTP response headers.

Link copied to clipboard
val headersText: String? = null

HTTP response headers text.

Link copied to clipboard
val requestHeaders: Headers? = null

HTTP request headers.

Link copied to clipboard

HTTP request headers text.

Link copied to clipboard
val status: Int

HTTP response status code.

Link copied to clipboard

HTTP response status text.