code: func New(ctx context.Context, next http.Handler, maxConns config.MaxConn, name string) (http.Handler, error) {
  	middlewares.GetLogger(ctx, name, typeName).Debug("Creating middleware")
  
  	extractFunc, err := utils.NewExtractor(maxConns.ExtractorFunc)
  	if err != nil {
  		return nil, fmt.Errorf("error creating connection limit: %v", err)
  	}
  
  	handler, err := connlimit.New(next, extractFunc, maxConns.Amount)
  	if err != nil {
  		return nil, fmt.Errorf("error creating connection limit: %v", err)
  	}
  
  	return &maxConnection{handler: handler, name: name}, nil
  }
docs: // New creates a max connection middleware.