MutableHeaders

Mutable map of headers being sent as part of an S3 operation request.

Implementations of this interface should be thread safe.

Author

Elizabeth Paige Harper https://github.com/Foxcapades

Since

v0.1.0

Functions

Link copied to clipboard
abstract fun add(values: Map<String, Iterable<String>>)
abstract fun add(key: String, vararg values: String)
abstract fun add(key: String, values: Iterable<String>)

Adds the given values to this MutableListMap.

abstract fun add(key: String, value: String)

Adds the given value to this MutableListMap.

Link copied to clipboard
abstract operator fun contains(key: String): Boolean

Tests whether this ListMap contains the given key.

Link copied to clipboard
open fun forEach(p0: Consumer<in Pair<String, List<String>>>)
Link copied to clipboard
abstract operator fun get(key: String): List<String>?

Retrieves the list of values at the given key in this ListMap.

Link copied to clipboard
abstract operator fun iterator(): Iterator<Pair<String, List<String>>>
Link copied to clipboard
abstract fun set(values: Map<String, Iterable<String>>)
abstract fun set(key: String, vararg values: String)
abstract fun set(key: String, values: Iterable<String>)

Sets the given values to this MutableListMap.

abstract fun set(key: String, value: String)

Sets the given value to this MutableListMap.

Link copied to clipboard
Link copied to clipboard
abstract fun stream(): Stream<Pair<String, List<String>>>
Link copied to clipboard
abstract override fun toImmutable(): Headers

Creates and returns an immutable ListMap copy of this MutableListMap.

Link copied to clipboard
abstract fun toMap(): Map<String, List<String>>

Properties

Link copied to clipboard
abstract val isEmpty: Boolean

Whether this ListMap is empty.

Link copied to clipboard
abstract val isNotEmpty: Boolean

Whether this ListMap is not empty.

Link copied to clipboard
abstract val size: UInt

Number of lists in this ListMap.

Link copied to clipboard
abstract val totalSize: UInt

Total number of values in all lists in this ListMap.