Implement a statistics HTTP server

It is customary to pass iterators by value.