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

Hook beforeSend #28

Closed
ericholiveira opened this issue Mar 7, 2016 · 2 comments
Closed

Hook beforeSend #28

ericholiveira opened this issue Mar 7, 2016 · 2 comments

Comments

@ericholiveira
Copy link

It would be good to have a hook like the beforeSend on Jquery ajax. Sometimes you might want to change some headers dinamically (im passing user auth token on header and this token can change as the user login/logoff my application). This way i could check storage/memory before sending the request for the current token.

@tulios
Copy link
Owner

tulios commented Mar 7, 2016

I had this necessity myself in the past (issue #15) and, in the end, I solved the problem in a different way. This feature combined with URL matching and global configurations can be really powerful. I'll keep this issue open to track the addition of this feature.

Thanks again.

@ericholiveira
Copy link
Author

This is not a block to me a just made a proxy function to the .forge result. But is certainly a nice-to-have feature to make it more powerful

@tulios tulios closed this as completed in 256b5d1 Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants