(hs http.Header)
| 96 | } |
| 97 | |
| 98 | func FromHeader(hs http.Header) []*Header { |
| 99 | result := make([]*Header, 0, len(hs)) |
| 100 | for k, vs := range hs { |
| 101 | result = append(result, &Header{ |
| 102 | Key: k, |
| 103 | Values: vs, |
| 104 | }) |
| 105 | } |
| 106 | return result |
| 107 | } |
| 108 | |
| 109 | // Error returns a HTTP gRPC error that is correctly forwarded over |
| 110 | // gRPC, and can eventually be converted back to a HTTP response with |
no outgoing calls
no test coverage detected