Statistics Module Refactoring
As mentioned in #353 (closed) there is significant code duplication in the stats module which should be refactored.
I've started working on some of those ideas in https://gitlab.com/gnuwget/wget2/commits/tmp-stats-refactor
Any suggestions, ideas are welcome. @rootkea do look at the code I've pushed. You're the one with the best understanding of this part of the codebase, and I'd like some validation on whether this approach looks sane.
Ideas / Suggestions:
- Collect and process stats within libwget. Expose the stats structs for the client to probe and use