Looking at tools like tc, wondershaper, htb and comcast, all these tools seem to operate on the level of a network interface or at least a "connection group" for limiting bandwidth. I'd like to not throttle bandwidth for a group of connections, but instead throttle the max rate of individual connections.
Specifically: Is there a tool available that I can use to shape the max download rate of individual HTTP requests?
Details
What I'm looking to do is emulate slow requests to fetch from buckets on S3. I'm seeing that for requests that are away from a data center, download of an individual item is usually slow (<500 kb/s) but downloading in parallel yields download speeds >5 mb/s.
I can probably get part of the way there by adding latency in these requests (which slows down throughout of serial requests but not overall bandwidth), but a more direct solution would be great.