Middlewares
What is Middleware?
Middleware is software that provides common services and capabilities to applications outside of what’s offered by the operating system. Data management, application services, messaging, authentication, and API management are all commonly handled by middleware.Middleware helps developers build applications more efficiently. It acts like the connective tissue between applications, data, and users.
Response Time Calculator
Calculates response time and adds result to response headers in ms.
Usage
Add middleware to the top of Configure method in the Startup.cs
file.
public void Configure(IHostApplicationLifetime applicationLifetime)
{
app.UseMilvaResponseTimeCalculator();
...
}
Output;