(dst, src http.Header)
| 145 | } |
| 146 | |
| 147 | func copyHeader(dst, src http.Header) { |
| 148 | for k, vv := range src { |
| 149 | for _, v := range vv { |
| 150 | dst.Add(k, v) |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | // writeError handles writing errors to the http.ResponseWriter. It uses dskit's |
| 156 | // httpgrpc.WriteError() to handle httpgrc errors. The handler handles all incoming HTTP requests |