// Use appends a Handler to the box middleware. Different middleware can be set
// for each subrouter (Box).
358303
func (w *Weavebox) Use(handlers ...Middleware) {
	for _, h := range handlers {
		w.middleware = append(w.middleware, h)
	}
}
1336817
func Use(c context.Context, s *Settings) context.Context {
	return context.WithValue(c, contextKey(0), s)
}
710797
func (m *Mux) UseHandler(phase string, fn c.HandlerFunc) *Mux {
	m.Middleware.UseHandler(phase, fn)
	return m
}
1362874
func (r *Router) Use(mc MiddlewareChain) {
	r.middleware = r.middleware.ExtendFrom(mc)
}
540232
func (h *Hitch) Handle(method, path string, handler http.Handler, middleware ...func(http.Handler) http.Handler) {
	for i := len(middleware) - 1; i >= 0; i-- {
		handler = middleware[i](handler)
	}
	h.Router.Handle(method, path, wrap(handler))
}
1285702
func (n *Negroni) UseHandler(handler http.Handler) {
	n.Use(Wrap(handler))
}
743346
func Use(c context.Context, out io.Writer) context.Context {
	return logging.SetFactory(c, GetFactory(out))
}
717220
func (r *Router) Use(handle Middleware) *Router {
	r.mds = append(r.mds, handle)
	r.middleware = Compose(r.mds...)
	return r
}
356166
func (r *routerGroup) Use(f func(next http.Handler) http.Handler) {
	r.chain = r.chain.Append(f)
}
860084
func (nap *NapNap) Use(mHandler MiddlewareHandler) {
	nap.handlers = append(nap.handlers, mHandler)
	nap.middleware = build(nap.handlers)
}
689339
func (s *PrioritySlot) Use(ctx context.Context, priority int) context.Context {
	ctx, cancel := context.WithCancel(ctx)
	s.mu.Lock()
	defer s.mu.Unlock()
	if s.shutdown {
		// Not accepting new processes.
		cancel()
		return ctx
	}
	if s.cancel == nil {
		// First use
		s.cancel = cancel
		s.priority = priority
		return ctx
	}
	if s.priority <= priority {
		// Argument wins
		s.cancel()
		s.cancel = cancel
		s.priority = priority
		return ctx
	}
	// Incumbent wins
	cancel()
	return ctx
}
722113
func (h *Hitch) UseHandler(handler http.Handler) {
	h.Use(func(next http.Handler) http.Handler {
		return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
			handler.ServeHTTP(w, req)
			next.ServeHTTP(w, req)
		})
	})
}
986465
func (app *App) Use(handle Middleware) *App {
	app.mds = append(app.mds, handle)
	return app
}
1357882
func (t *Tango) Use(handlers ...Handler) {
	t.handlers = append(t.handlers, handlers...)
}
893113
func (s *Server) Handle(method string, handlerFunc interface{}) {
	addHandler(s.handlers, method, handlerFunc)
}
1164791
func Use(vv ...string) *Set {
	sort.Strings(vv)
	return &Set{items: vv}
}
185649
func (service *Service) Use(m Middleware) {
	service.middleware = append(service.middleware, m)
}