// router attempts to find a route for a request. If a route is successfully matched,
// it returns the route information and a bool value of `true`. If a route can not be matched,
// a nil value for the route and false bool value is returned.
router attempts to find a route for a request. If a route is successfully matched,
it returns the route information and a bool value of `true`. If a route can not be matched,
a nil value for the route and false bool value is returned.
// router attempts to find a route for a request . If a route is successfully matched // it returns the route information and a bool value of ` true ` . If a route can not be matched // a nil value for the route and false bool value is returned .
func (p *Proxy) router(r *http.Request) (http.Handler, bool) {
	config, ok := p.routeConfigs[r.Host]
	if ok {
		return config.mux, true
	}
	return nil, false
}
func ( p * Proxy ) router ( r * http . Request ) ( http . Handler , bool ) { config , ok := p . routeConfigs [ r . Host ] if ok { return config . mux , true } return nil , false }
router attempts to find a route for a request.
router attempts to find a route for a request .