All Projects → BSiLabs → Httptracer

BSiLabs / Httptracer

Licence: mit

Projects that are alternatives of or similar to Httptracer

Tiny.restclient
Simpliest Fluent REST client for .NET
Stars: ✭ 158 (+11.27%)
Mutual labels:  httpclient, xamarin
Xam.plugin.simpleappintro
Just a nice and simple AppIntro for your Xamarin Forms project
Stars: ✭ 139 (-2.11%)
Mutual labels:  xamarin
Xamarin Templates
Xamarin.Android Templates Pack
Stars: ✭ 127 (-10.56%)
Mutual labels:  xamarin
Webapiclientgen
Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
Stars: ✭ 134 (-5.63%)
Mutual labels:  xamarin
Xamarin.forms.breadcrumb
This is a breadcrumb navigation control that is complete automatic and uses the Navigation stack and page titles to generate the breadcrumbs.
Stars: ✭ 130 (-8.45%)
Mutual labels:  xamarin
Bingmapsresttoolkit
This is a portable class library which makes it easy to access the Bing Maps REST services from .NET.
Stars: ✭ 136 (-4.23%)
Mutual labels:  xamarin
Arcgis Toolkit Dotnet
Toolkit for ArcGIS Runtime SDK for .NET
Stars: ✭ 125 (-11.97%)
Mutual labels:  xamarin
Mvvmvalidation
Lightweight library that helps reduce boilerplate when implementing validation in XAML MVVM applications
Stars: ✭ 141 (-0.7%)
Mutual labels:  xamarin
Ble.net
Cross-platform Bluetooth Low Energy (BLE) library for Android, iOS, and UWP
Stars: ✭ 137 (-3.52%)
Mutual labels:  xamarin
Cnblogs
博客园第三方Android客户端,Xamarin App,Material Design风格
Stars: ✭ 134 (-5.63%)
Mutual labels:  xamarin
Awesome Xamarin
A collection of interesting libraries/tools for Xamarin mobile projects
Stars: ✭ 1,754 (+1135.21%)
Mutual labels:  xamarin
Managed Midi
[Past project] Cross-platform MIDI processing library for mono and .NET (ALSA, CoreMIDI, Android, WinMM and UWP).
Stars: ✭ 130 (-8.45%)
Mutual labels:  xamarin
Xamarin.gradlebindings
VS add-in. Creates Xamarin.Android Binding Projects using gradle
Stars: ✭ 136 (-4.23%)
Mutual labels:  xamarin
Colorthief
Color Thief for .NET
Stars: ✭ 128 (-9.86%)
Mutual labels:  xamarin
Plugin.audiorecorder
Audio Recorder plugin for Xamarin and Windows
Stars: ✭ 140 (-1.41%)
Mutual labels:  xamarin
Mass Rat
Basic Multiplatform Remote Administration Tool - Xamarin
Stars: ✭ 127 (-10.56%)
Mutual labels:  xamarin
Xam.plugin.webview
Xamarin Plugin for a HybridWebView in PCL projects.
Stars: ✭ 132 (-7.04%)
Mutual labels:  xamarin
Xamarin Docs
Xamarin Documentation - public content repo
Stars: ✭ 136 (-4.23%)
Mutual labels:  xamarin
Mootool
A handy tool set for developers. 开发者常备小工具
Stars: ✭ 141 (-0.7%)
Mutual labels:  httpclient
Xamarin.forms.videoplayer
A Xamarin Forms control to render the native video player on every platform.
Stars: ✭ 140 (-1.41%)
Mutual labels:  xamarin

HttpTracer

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

Channel Status
Build Build status
MyGet.org #
NuGet.org #

Platform Support

Http Tracer is a .NET Standard 2.0 library.

Platform Version
Xamarin.iOS iOS 7+
Xamarin.Android API 14+
Windows 10 UWP 10.0.16299+
.NET Core 2.0+
ASP.NET Core 2.0+
.NET 4.6.1+

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
    {
        Verbosity = HttpMessageParts.All
    };
    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 tracer = builder.Build();
    tracer.Verbosity = HttpMessageParts.All;
    
    var client = new HttpClient(tracer);
    var result = await client.GetAsync("http://myserviceurl.com");
}

You can use bitwise operators to combine your desired HttpMessagePart options:

private const HttpMessageParts DefaultHttpTracerVerbosity =
            HttpMessageParts.RequestAll | HttpMessageParts.ResponseHeaders;

You can set the verbosity for all of your HttpTracerHandler instances by setting HttpTracerHandler.DefaultVerbosity. To set verbosity at the per-instance level, use HttpTracerHandler.Verbosity which will override HttpTracerHandler.DefaultVerbosity.

Replaying Requests

The output format for requests can be copy/pasted into a compatible rest client such as REST Client for Visual Studio Code or the REST Client which is part of JetBrains IDEs (Rider, PyCharm, Android Studio, etc).

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!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].