HttpHeadersMap

class HttpHeadersMap

A headers map data structure used in CIO

Properties

size

var size: Int

Functions

find

fun find(name: String, fromIndex: Int = 0): Int

get

operator fun get(name: String): CharSequence?

getAll

fun getAll(name: String): Sequence<CharSequence>

nameAt

fun nameAt(idx: Int): CharSequence

put

fun put(
    nameHash: Int,
    valueHash: Int,
    nameStartIndex: Int,
    nameEndIndex: Int,
    valueStartIndex: Int,
    valueEndIndex: Int
): Unit

release

fun release(): Unit

toString

fun toString(): String

valueAt

fun valueAt(idx: Int): CharSequence

Extension Functions

dumpTo

fun HttpHeadersMap.dumpTo(
    indent: String,
    out: Appendable
): Unit

Dump header values to out, useful for debugging