A middleware for calculating and setting the Runtime header for the response