code: func NewForward(ctx context.Context, next http.Handler, config config.ForwardAuth, name string) (http.Handler, error) {
  	middlewares.GetLogger(ctx, name, forwardedTypeName).Debug("Creating middleware")
  
  	fa := &forwardAuth{
  		address:             config.Address,
  		authResponseHeaders: config.AuthResponseHeaders,
  		next:                next,
  		name:                name,
  		trustForwardHeader:  config.TrustForwardHeader,
  	}
  
  	if config.TLS != nil {
  		tlsConfig, err := config.TLS.CreateTLSConfig()
  		if err != nil {
  			return nil, err
  		}
  
  		fa.tlsConfig = tlsConfig
  	}
  
  	return fa, nil
  }
docs: // NewForward creates a forward auth middleware.