ConnectionOptions

class ConnectionOptions(val close: Boolean = false, val keepAlive: Boolean = false, val upgrade: Boolean = false, val extraOptions: List<String> = emptyList())

Represents a parsed Connection header

Constructors

Link copied to clipboard
constructor(close: Boolean = false, keepAlive: Boolean = false, upgrade: Boolean = false, extraOptions: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val close: Boolean = false

true for Connection: close

Link copied to clipboard

a list of extra connection header options other than close, keep-alive and upgrade

Link copied to clipboard
val keepAlive: Boolean = false

true for Connection: keep-alive

Link copied to clipboard
val upgrade: Boolean = false

true for Connection: upgrade

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String