Open piranha opened 8 years ago
Seems potentially nast yeah. clojure-miniprofiler can't do too much here, because it relies on munging the response. I don't have any good ideas on potential solutions - reading a (potentially infinite) buffer is kinda gnarly.
Well, if it says it's application/json
, it can't be too infinite, can it? Also, if it's infinite, just exclude the request in :profile-request?
. Because in other case you can't profile responses at all!
My API returns a response where
:body
is a BufferedInputStream, and because of that miniprofiler dies with a stacktrace like that:I'm not sure what's the best way to proceed, should there be some if about parsing streams?