func MatchCT(strs string) Proto {
	return func(r io.Reader) bool {
		return matchHTTP2Field(ioutil.Discard, r, "content-type", func(gotValue string) bool {
			return gotValue == strs
		})
	}
}
MatchCT only matches the content-type of the request.
package listener
import (
	"bytes"
	"fmt"
	"io"
	"io/ioutil"
	"net"
	"sync"
	"time"
	"golang.org/x/net/http2"
	"golang.org/x/net/http2/hpack"
)
type Proto func(io.Reader) bool
func MatchAny() Proto {
	return func(r io.Reader) bool { return true }
}
func MatchWS(strs ...string) Proto {
	pt := newPatriciaTreeString(strs...)
	return pt.matchPrefix
}