cljs-http icon indicating copy to clipboard operation
cljs-http copied to clipboard

previewing a request before it gets sent

Open bolivier opened this issue 8 years ago • 1 comments

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 avatar Mar 19 '17 04:03 bolivier

@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 :)

r0man avatar Mar 20 '17 20:03 r0man