(response http.ResponseWriter, err error)
| 171 | } |
| 172 | |
| 173 | func (w *ErrorWriter) writeGRPCWeb(response http.ResponseWriter, err error) error { |
| 174 | // This is a trailers-only response. To match the behavior of Envoy and |
| 175 | // protocol_grpc.go, put the trailers in the HTTP headers. |
| 176 | grpcErrorToTrailer(response.Header(), w.protobuf, err) |
| 177 | response.WriteHeader(http.StatusOK) |
| 178 | return nil |
| 179 | } |
no test coverage detected