func (m MatchProtocol) Match(r *http.Request) bool {
	switch string(m) {
	case "grpc":
		return strings.HasPrefix(r.Header.Get("content-type"), "application/grpc")
	case "https":
		return r.TLS != nil
	case "http":
		return r.TLS == nil
	}
	return false
}
// Match returns true if r matches m.
Match returns true if r matches m.
// Match returns true if r matches m .
func (m MatchProtocol) Match(r *http.Request) bool {
	switch string(m) {
	case "grpc":
		return strings.HasPrefix(r.Header.Get("content-type"), "application/grpc")
	case "https":
		return r.TLS != nil
	case "http":
		return r.TLS == nil
	}
	return false
}
func ( m MatchProtocol ) Match ( r * http . Request ) bool { switch string ( m ) { case " " : return strings . HasPrefix ( r . Header . Get ( " " ) , " " ) case " " : return r . TLS != nil case " " : return r . TLS == nil } return false }
Match returns true if r matches m.
Match returns true if r matches m .