dagolden / HTTP-Tiny-UA

Higher-level UA features for HTTP::Tiny
https://metacpan.org/author/DAGOLDEN
4 stars 8 forks source link

Feature request: limitation of download/upload speed #10

Closed skaji closed 9 years ago

skaji commented 9 years ago

I sometimes want to limit download/upload speed.

I tried to implement this feature in https://github.com/shoichikaji/HTTP-Tiny-Bandwidth

If HTTP::Tiny::UA would accept this feature, I'm happy to raise a pull request. What do you think? Thanks.

xdg commented 9 years ago

It's a very interesting idea. Unfortunately, I think HTTP::Tiny::UA isn't the right place for it. It would seem more interesting to find a way to make a generic "callback rate limiter" module for CPAN, perhaps. (I.e. wrapping an arbitrary user function). Then the HTTP::Tiny (and ::UA) docs could reference it as an option.