Headers
interface Headers : StringValues
Represents HTTP headers as a map from case-insensitive names to collection of String values
Inherited Properties
abstract val caseInsensitiveName: Boolean Specifies if map has case-sensitive or case-insensitive names |
Inherited Functions
Checks if the given name exists in the map |
|
Gets all entries from the map |
|
Iterates over all entries in this map and calls body for each pair |
|
Gets first value from the list of values associated with a name, or null if the name is not present |
|
Gets all values associated with the name, or null if the name is not present |
|
abstract fun isEmpty(): Boolean Checks if this map is empty |
|
Gets all names from the map |
Companion Object Properties
val Empty: Headers Empty Headers instance |
Companion Object Functions
fun build(builder: HeadersBuilder.() -> Unit): Headers |
Extension Functions
fun StringValues.filter( Create a new instance of StringValues filtered by the specified predicate |
|
fun StringValues.flattenEntries(): List<Pair<String, String>> Copy values to a list of pairs |
|
fun StringValues.flattenForEach( Invoke block function for every value pair |
|
Retrieves LastModified and ETag versions from headers. |
|
fun StringValues.toMap(): Map<String, List<String>> Copy values to a new independent map |
Inheritors
class CIOHeaders : Headers An adapter from CIO low-level headers map to ktor Headers interface |
|
object |
|
class HeadersImpl : Headers, StringValuesImpl |
|
class HeadersSingleImpl : Headers, StringValuesSingleImpl |
|
class NettyApplicationRequestHeaders : Headers |
|
class ServletApplicationRequestHeaders : Headers |