|Reported by:||josharian||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It is useful to be able to simulate slow response times from a server -- for example, to see what a mobile client ui will look like when the connection is poor.
A sleep-every-request middleware makes that very easy. The middleware is easy to write, but given how common a task it is, it might be worth having packaged with Django contrib.
To put code where my mouth is, a first cut implementation, which I happily place in the public domain, is at https://gist.github.com/1453629. I'm happy to iterate on it, given feedback.