class RateLimiterMiddleware
extends Middleware
import { RateLimiterMiddleware } from "https://dotland.deno.dev/x/drash@v3.0.0-beta.2/src/modules/middleware/RateLimiter/mod.ts";
Constructors
new
RateLimiterMiddleware(options?: Options)Construct the middleware that handles rate limiting requests.
Methods
protected
throwIfRateLimited(context: PreNextContext)Check the client to see if it should be rate limited.
ALL(request: Request): Promise<Response>