in pkg/model/core/grpcroute.go [329:348]
func (m *GRPCHeaderMatch) Equals(headerMatch HeaderMatch) bool {
other, ok := headerMatch.(*GRPCHeaderMatch)
if !ok {
return false
}
if m.Name() != other.Name() ||
m.Value() != other.Value() {
return false
}
mType := m.Type()
otherType := other.Type()
if (mType == nil && otherType != nil) ||
(mType != nil && otherType == nil) {
return false
}
return (mType == nil && otherType == nil) ||
*mType == *otherType
}