MockHttp for HttpClient

Testing layer for Microsoft's HttpClient library

This is a prerelease version of RichardSzalay.MockHttp.
There is a newer version of this package available.
See the version list below for details.
Install-Package RichardSzalay.MockHttp -Version
dotnet add package RichardSzalay.MockHttp --version
<PackageReference Include="RichardSzalay.MockHttp" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RichardSzalay.MockHttp --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

1.3.0 - Added support for .NET Core via the .NET Standard Library (1.1)
 - Relative URLs now match correctly on Xamarin Android
1.2.2 - Root absolute URLs defined with no trailing flash now match those with a slash (and vice versa)
1.2.1 - HttpResponseMessage.RequestMessage is now assigned correctly
 - Form/Query data matching now works with both + and %20 space encodings (thanks Jozef Izso!)
1.2.0 - Changed PCL profile to support WP8.1
1.1.0 - Added MockHttpMessageHandler.Fallback and HttpClient passthrough support

Showing the top 7 GitHub repositories that depend on RichardSzalay.MockHttp:

Repository Stars
The automatic type-safe REST library for .NET Core, Xamarin and .NET
Welcome to the Bot Framework Solutions repository which is the home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework. Microsoft Bot Framework is a comprehensive framework for building enterprise-grade conversational AI experiences.
Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
Web Push library for C#
A modern async HTTP client for REST APIs. Its fluent interface lets you send an HTTP request and parse the response in one go.
A .NET library for efficiently sending points to InfluxDB
BruTile is a .NET library to access tile services like those of OpenStreetMap, MapBox or GeodanMaps.

Version History

Version Downloads Last updated
5.0.0 365,558 6/18/2018
4.0.0 54,554 4/16/2018
3.3.0 67,296 3/11/2018
3.2.1 226,488 9/7/2017
3.2.0 11,749 8/31/2017
3.1.0 1,572 8/29/2017
1.5.1 9,429 8/22/2017
1.5.0 131,982 2/23/2017
1.4.1 8,476 1/19/2017
1.4.0 1,525 1/17/2017
1.3.1 42,153 9/19/2016
1.3.0 14,288 6/30/2016
1.3.0-netstandard-alpha2 2,827 5/19/2016
1.3.0-netstandard-alpha1 315 5/19/2016
1.2.2 60,592 3/1/2016
1.2.1 13,834 5/6/2015
1.2.0 7,257 12/22/2014
1.1.0 340 12/21/2014 316 7/5/2016
1.0.1 1,536 6/28/2014
1.0.1-beta 328 6/23/2014
1.0.0-beta 345 6/22/2014
Show less