Companion

object Companion

Factories for creating Headers.

Properties

Link copied to clipboard

A shared, empty Headers instance.

Functions

Link copied to clipboard

Creates Headers from a map; entry order follows the map's iteration order. Because a map cannot hold duplicate keys, the result has at most one value per name.

Link copied to clipboard
fun of(vararg pairs: Pair<String, String>): Headers

Creates Headers from the given name/value pairs, preserving order.