cljs-http
cljs-http copied to clipboard
previewing a request before it gets sent
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.
@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 :)