xh icon indicating copy to clipboard operation
xh copied to clipboard

feature request: display stats

Open luisdavim opened this issue 2 years ago • 3 comments

It would be nice to show some timing stats, something like httpstat

https://github.com/davecheney/httpstat

luisdavim avatar Apr 04 '23 08:04 luisdavim

Is there a particular stat you would be interested in? Currently, -vv displays the total duration, but we could also add time-to-first-byte and content-download duration.

For more granular stats, it would have to be supported in hyper/reqwest first.

  • https://github.com/hyperium/hyper/issues/56
  • https://github.com/seanmonstar/reqwest/issues/1352

ducaale avatar Apr 09 '23 22:04 ducaale

From @blyxxyz in https://github.com/ducaale/xh/issues/347#issuecomment-1894674048

HTTPie issue: https://github.com/httpie/cli/issues/1495

This is maybe something we could handle by printing debug logs. Some of our dependencies already generate logs through log but we don't have a way to show them right now. They don't include the IP address but we could add our own log message for that (if we can get that info at all).

If we go that route then we don't have to worry as much about what HTTPie does.

ducaale avatar Jan 17 '24 21:01 ducaale