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 support for callback hooks in share providers #256

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

zeroSteiner
Copy link
Contributor

This adds the ability for developers to install callback hooks for share providers. The hooks are stored in the share provider instance but are actually invoked in the share processor. At this time, only one hook for a request class, and location combination is supported at a time but we could easily change that in the future. The location is "before" or "after" to allow the developer to hook the logic before or after the original handler is invoked. This can be used, for example, to monitor a connection for individual requests to track state.

There will be another pull request which will require these changes and can be used for testing.

@bwatters-r7 bwatters-r7 self-assigned this Nov 9, 2023
@bwatters-r7 bwatters-r7 merged commit 7fc546a into rapid7:master Nov 13, 2023
6 checks passed
@bwatters-r7
Copy link
Contributor

Release Notes

This adds the ability for developers to install callback hooks for share providers.

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.

2 participants