Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPMatchAnd ¶
func HTTPMatchAnd(reqMatchers ...RequestMatcher) cmux.Matcher
func HTTPMatchOr ¶
func HTTPMatchOr(reqMatchers ...RequestMatcher) cmux.Matcher
Types ¶
type HTTP2PseudoHeader ¶
type HTTP2PseudoHeader string
const ( HTTP2PseudoHeaderMethod HTTP2PseudoHeader = ":method" HTTP2PseudoHeaderScheme HTTP2PseudoHeader = ":scheme" HTTP2PseudoHeaderAuthority HTTP2PseudoHeader = ":authority" HTTP2PseudoHeaderPath HTTP2PseudoHeader = ":path" )
type HTTPVersion ¶
type HTTPVersion uint8
const ( HTTPVersionUnknown HTTPVersion = iota HTTPVersion10 HTTPVersion11 HTTPVersion2 )
type RequestMatcher ¶
type RequestMatcher func(req *RequestPreface) bool
func PathPrefixMatcher ¶
func PathPrefixMatcher(prefix string) RequestMatcher
type RequestPreface ¶
Click to show internal directories.
Click to hide internal directories.