ConnectionOptions

class ConnectionOptions(close: Boolean, keepAlive: Boolean, upgrade: Boolean, extraOptions: List<String>)

Represents a parsed Connection header

Constructors

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

Types

Link copied to clipboard
object Companion

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

Properties

Link copied to clipboard
val close: Boolean = false

true for Connection: close

Link copied to clipboard
val extraOptions: List<String>

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