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 beforeSend callback #68

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

Commits on Dec 25, 2021

  1. allow a beforeSend callback to be set in config

    This change allows the user to specify a callback which will fire
    before a request is triggered. The function will have access to
    the XHR object and settings object.
    zokioki committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    ba5d375 View commit details
    Browse the repository at this point in the history
  2. make callback data object consistent between ajax and xhr requests

    This ensures the request data being passed to the beforeSend callback
    is in the same format for both the ajax and XMLHttpRequest versions.
    zokioki committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    874465a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3294385 View commit details
    Browse the repository at this point in the history