Lines Matching defs:ServeMux
2505 type ServeMux struct { struct
2506 mu sync.RWMutex
2507 tree routingNode
2508 index routingIndex
2509 patterns []*pattern // TODO(jba): remove if possible
2510 mux121 serveMux121 // used only when GODEBUG=httpmuxgo121=1
2573 func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) {
2585 … (mux *ServeMux) findHandler(r *Request) (h Handler, patStr string, _ *pattern, matches []string) {
2647 …ct(host, method, path string, u *url.URL) (_ *routingNode, matches []string, redirectTo *url.URL) {
2717 func (mux *ServeMux) matchingMethods(host, path string) []string {
2733 func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) {
2756 func (mux *ServeMux) Handle(pattern string, handler Handler) {
2767 func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
2795 func (mux *ServeMux) register(pattern string, handler Handler) {
2801 func (mux *ServeMux) registerErr(patstr string, handler Handler) error {