HeadersBuilder

class HeadersBuilder(size: Int) : StringValuesBuilder

Functions

Link copied to clipboard
fun append(name: String, value: String)
Link copied to clipboard
fun appendAll(stringValues: StringValues)
fun appendAll(name: String, values: Iterable<String>)
Link copied to clipboard
fun appendMissing(stringValues: StringValues)
fun appendMissing(name: String, values: Iterable<String>)
Link copied to clipboard
open override fun build(): Headers
Link copied to clipboard
fun clear()
Link copied to clipboard
operator fun contains(name: String): Boolean
fun contains(name: String, value: String): Boolean
Link copied to clipboard
fun entries(): Set<Map.Entry<String, List<String>>>
Link copied to clipboard
operator fun get(name: String): String?
Link copied to clipboard
fun getAll(name: String): List<String>?
Link copied to clipboard
fun isEmpty(): Boolean
Link copied to clipboard
fun names(): Set<String>
Link copied to clipboard
fun remove(name: String)
fun remove(name: String, value: String): Boolean
Link copied to clipboard
fun removeKeysWithNoEntries()
Link copied to clipboard
operator fun set(name: String, value: String)

Properties

Link copied to clipboard
val caseInsensitiveName: Boolean

Extensions

Link copied to clipboard
fun HeadersBuilder.etag(entityTag: String)

Set E-Tag header