Module: Middleware

Defined in:
lib/middleware/app_type_detector.rb,
lib/middleware/cloudflare_geo_simulator.rb

Overview

Middleware that detects and sets the app type early in the request lifecycle.

This should be inserted near the top of the middleware stack so that:

  1. All subsequent middleware can use Heatwave::AppType.current
  2. The app type is available for conditional middleware logic

Insert with:
Rails.application.config.middleware.insert_before(0, Middleware::AppTypeDetector)

Defined Under Namespace

Classes: AppTypeDetector, CloudflareGeoSimulator