Request/response Inspector middleware for ASP.NET Core
Request/response Inspector middleware for ASP.NET Core. like Glimpse. Rin captures HTTP requests to ASP.NET Core app and provides viewer for captured data. It's useful tool to debug your Web application (e.g. Web sites, API apps).
Rin captures HTTP traffics between the ASP.NET Core app and any clients.
Microsoft.Extensions.Logging.ILogger, log4net, ...)Rin inspector displays events that occurred while processing a request.
Rin inspector can display request and response body with a preview. (e.g. JSON, Image, HTML, JavaScript ...)
Rin captures a request and response. Also, it captures logs while processing a request.
Microsoft.Extensions.Logging.ILogger integrationYou can replay a request easily using cURL and LINQPad.
Dependencies -> Manage NuGet Packages... -> Search and install Rin and Rin.Mvc (if your project is built with ASP.NET Core MVC) package.
dotnet add package Rin
dotnet add package Rin.MvcInstall-Package Rin
Install-Package Rin.Mvcpublic static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureLogging(configure =>
{
// Add: Enable Rin Logger
configure.AddRinLogger();
})
.UseStartup();…@inject Rin.Mvc.View.RinHelperService RinHelper
...
@* Add: Enable In-View Inspector for ASP.NET Core MVC *@
@RinHelper.RenderInViewInspector()
...Launch the app, then open http://[Host:Port]/rin/ in the browser, you can see Rin Inspector now.
Rin Inspector (client side) codes is separated from Rin core C# project. If you want to develop Rin (C#) or launch a sample project, you need to build and deploy the artifacts.
yarnyarn startyarn buildyarn packyarn buildcopy .\dist\static\main.js* ..\Rin.Mvc\EmbeddedResources\No open issues yet, or sync has not completed.