Stone.js API
    Preparing search index...
    • Enable rate limiting on the application.

      The declarative half of the module's activation; rateLimitBlueprint is the imperative half, and neither can do what the other cannot. Nothing is limited until a route says so: this only puts the enforcement in place.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      @RateLimit({ trustedAddressHeaders: ['cloudfront-viewer-address'] })
      @Routing()
      @StoneApp()
      export class Application {}