HttpTracer 1.0.0

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package HttpTracer -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package HttpTracer --version 1.0.0
<PackageReference Include="HttpTracer" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HttpTracer --version 1.0.0
#r "nuget: HttpTracer, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install HttpTracer as a Cake Addin
#addin nuget:?package=HttpTracer&version=1.0.0

// Install HttpTracer as a Cake Tool
#tool nuget:?package=HttpTracer&version=1.0.0

HttpTracer

A simple http tracing library to write request and response information to your output window. Making your life easier when debugging http calls!

Platform Support

Http Tracer is a .NET Standard 2.0 library.

Getting Started

It is really easy to start using and debugging your Http requests, just add a instance of HttpTracerHandler to your HttpClient creation and start picking up the traces in your Visual Studio console window.

using HttpTracer;
public async Task GetMyData()
{
    var tracer = new HttpTracerHandler();
    var client = new HttpClient(tracer);
    var result = await client.GetAsync("http://myserviceurl.com");
}

If you happen to use custom Http Handlers in your project, we suggest you use our Http handler builder:

using HttpTracer;
public async Task GetMyData()
{
    var builder = new HttpHandlerBuilder();

    builder.AddHandler(new MyHandler3())
           .AddHandler(new MyHandler2())
           .AddHandler(new MyHandler1());
           
    var client = new HttpClient(builder.Build());
    var result = await client.GetAsync("http://myserviceurl.com");
}

License

Under MIT (see license file)

Want To Support This Project?

All we ask is to be active by submitting bugs, features, and sending those pull requests down!

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid monoandroid50
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Universal Windows Platform uap10.0.16299
Xamarin.iOS xamarinios xamarinios10
Xamarin.Mac xamarinmac xamarinmac20
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HttpTracer:

Package Downloads
RipeClient

.net core client to RIPE Database and hosted RPKI

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on HttpTracer:

Repository Stars
restsharp/RestSharp
Simple REST and HTTP API Client for .NET
Version Downloads Last updated
2.1.1 216,753 10/7/2019
2.1.0 320 10/4/2019
2.0.2 14,949 4/30/2019
2.0.1 6,319 4/23/2019
2.0.0 529 4/22/2019
1.0.3 1,342 3/3/2019
1.0.2 2,538 11/27/2018
1.0.1 1,099 5/25/2018
1.0.0 820 5/5/2018