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

previewing a request before it gets sent #108

Open
bolivier opened this issue Mar 19, 2017 · 1 comment
Open

previewing a request before it gets sent #108

bolivier opened this issue Mar 19, 2017 · 1 comment

Comments

@bolivier
Copy link

It would be really helpful to have the ability to inspect a request before it gets sent out.

The use case I have in mind is to verify that the headers are what I think they are.

@r0man
Copy link
Owner

r0man commented Mar 20, 2017

@bolivier Can you be more specific? How do you want to inspect? Via logging, prn or something else? Note, you could always write your own middleware and build a specialized client like it is done here:
https://github.com/r0man/cljs-http/blob/master/src/cljs_http/client.cljs#L266
If you are satisfied the middleware works as you want and is generally useful and configurable, send a PR and we can include something like this :)

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

No branches or pull requests

2 participants