Simple middleware for adding a custom header with timing information to a response.
Simple middleware for adding a custom header with timing information to a response.
This middleware captures the time starting from when the request headers are parsed and supplied
to the wrapped service and ending when the response is started. Metrics middleware, like this one,
work best as the outer layer to ensure work done by other middleware is also included.
Attributes
headerName
the name to use for the header containing the timing info