Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for skipping access checks and register #11

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

WimdeJager
Copy link

This adds two functions to Options:

  • SkipRegisterFunction: when this is set and returns true for the given response and request, the current request will not be registered and the access count will not be incremented. This allows skipping certain requests, e.g. it is now possible to skip requests that have a success response. The default is a function that simply returns false.
  • SkipAccessCheckFunction: when this is set and returns true, the access check will be skipped. This useful for example to define some IP allowlist (or denylist). The default is again a function that simply returns false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant