headers

fun headers(name: String): List<String>

Finds all the headers matching the given name. In keeping with the HTTP RFC, HTTP header field names are case-insensitive. Each item of the returned list can contain a single value or a comma-separated list of values if the field supports it.


Parameters

headers

HTTP response headers, indexed by their name.