public readonly property headers as SortedMap<String, String>:
Returns a snapshot of the request headers.
Mutating the returned map never changes this request. Header names are matched case-insensitively by withHeader and withoutHeader.
import klyn.net
request = HttpRequest("https://example.com").withHeader("Accept", "text/plain")
headers = request.headers
headers["Accept"] = "application/json"
assert request.headers["Accept"] == "text/plain"