Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Gatekeeper

siemensikkema edited this page Sep 3, 2021 · 1 revision

Gatekeeper

public struct Gatekeeper 

Initializers

init(cache:config:identifier:)

public init(cache: Cache, config: GatekeeperConfig, identifier: GatekeeperKeyMaker) 

Methods

gatekeep(on:throwing:)

public func gatekeep(
        on req: Request,
        throwing error: Error = Abort(.tooManyRequests, reason: "Slow down. You sent too many requests.")
    ) -> EventLoopFuture<Void>