pub fn response_headers_to_map(
headers: &HeaderMap,
) -> Result<HashMap<String, Value>, String>Expand description
Convert HTTP response headers to HashMap<String, Value>. Keys are always lowercase. Returns an error if the server sent a header value containing non-ASCII bytes — that is a server-side protocol violation. Single value → string, multiple values → array.