Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/i-rzr-i/xresponsetimemw

Generate and write in HTTPContext response header variables request execution time('X-Response-Time') and also provide execution time for an action('X-Action-Response-Time'). This thing may help you when is needed to analyse application time consumiing.
https://github.com/i-rzr-i/xresponsetimemw

header http middleware profiling response responsetime time tracing variable xresponsetime

Last synced: 3 days ago
JSON representation

Generate and write in HTTPContext response header variables request execution time('X-Response-Time') and also provide execution time for an action('X-Action-Response-Time'). This thing may help you when is needed to analyse application time consumiing.

Awesome Lists containing this project

README

        

> **Note** This repository is developed in .netstandard2.0

[![NuGet Version](https://img.shields.io/nuget/v/XResponseTimeMW.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/XResponseTimeMW/)
[![Nuget Downloads](https://img.shields.io/nuget/dt/XResponseTimeMW.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/XResponseTimeMW)

One important thing about this repository is that you have the possibility to monitor the execution time for the request sent to the server and the execution time for some method or class where is added data annotation attribute.

Once you use this repository, in server response you may see one or two new variables, meaning request execution time. Added variables (`X-Response-Time` and `X-Action-Response-Time`) will be location in `HttpContext.Response.Headers`.

In other words in this repository is included one middleware that allows to add and return of general execution time per request (the first header variable).

And one more thing that was added is an action filter that can provide execution time for a specific method when will be added data annotation tag (the second header variable).

1. `X-Response-Time` - represent execution time for specific request;
2. `X-Action-Response-Time` - represent execution time for specific action.

**In case you wish to use it in your project, u can install the package from nuget.org** or specify what version you want:

> `Install-Package XResponseTimeMW -Version x.x.x.x`

## Content
1. [USING](docs/usage.md)
1. [CHANGELOG](docs/CHANGELOG.md)
1. [BRANCH-GUIDE](docs/branch-guide.md)