code: func buildHandlerChain(handler http.Handler, authn authenticator.Request, authz authorizer.Authorizer) http.Handler {
  	requestInfoResolver := &apirequest.RequestInfoFactory{}
  	failedHandler := genericapifilters.Unauthorized(legacyscheme.Codecs, false)
  
  	handler = genericapifilters.WithRequestInfo(handler, requestInfoResolver)
  	handler = genericapifilters.WithAuthorization(handler, authz, legacyscheme.Codecs)
  	handler = genericapifilters.WithAuthentication(handler, authn, failedHandler, nil)
  	handler = genericapifilters.WithRequestInfo(handler, requestInfoResolver)
  	handler = genericfilters.WithPanicRecovery(handler)
  
  	return handler
  }
docs: // buildHandlerChain wraps the given handler with the standard filters.