Skip to content

Consider adding hooks/callbacks #715

@reuben453

Description

@reuben453

Allowing users of the gem to specify hooks to be called before, after and around each API call made by the gem can be useful in some situations.

For example:

  • Enforcing test modes in applications by preventing destructive API calls (non GET API calls) during test runs
  • Retrying transient API failures
  • Uniform handling of API failures (error logging is an example)

How do you feel about adding hooks to this gem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions