Let's say I have 2 response headers with the same name "Set-Cookie"
The .Get method can only get the first value
In the document it said:
To access multiple values of a key, or to use non-canonical keys, access the map directly.
fmt.Println(headers.Get("Set-Cookie"))
// -> Can only get the first one
However when read the map
for key,value := range headers {
fmt.Println(key, value)
}
// -> cannot range over headers (type *http.Header)
Currently I'm not sure the right way to read this data.
headersis a slice of strings.