httpx icon indicating copy to clipboard operation
httpx copied to clipboard

Include stats information with stream mode

Open ghost opened this issue 2 years ago • 1 comments

httpx version:

1.1.4

Current Behavior:

When using httpx together with -stream and -stats, stats don't actually show up.

Expected Behavior:

Statistics show up even when using -stream and hitting a key.

Steps To Reproduce:

Run httpx -l domains.txt -stream -stats and press any key to see that the statistics indicator doesn't work.

ghost avatar Jan 02 '22 16:01 ghost

@Yardanico thanks for reporting this, this is not a bug, as stats are calculated over total data, and -stream is supposed to be used for stdin or run time input, so in that case, the current stats information can not be applied, but we will see what information or change we can make to print some meaningful information if stats and stream flag used together.

ehsandeep avatar Jan 10 '22 11:01 ehsandeep