RichardSzalay.MockHttp 3.1.0

MockHttp for HttpClient

Testing layer for Microsoft's HttpClient library

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

Release Notes

3.1.0 - Bump major version. Fixes #50
1.5.1 - Respond(HttpClient) now works as expected. Fixes #39
     - HttpResponseMessage can be disposed without breaking future requests. Fixes #33
1.5.0 - WithHeaders now also matches against Content-* headers (thanks Cory Lucas!)
1.4.0 - Cancellations and HttpClient timeouts are now supported. Fixes #29
     - Added a .ToHttpClient() convenience method to HttpClientHandler
1.3.1 - Multiple requests to the same mocked handler now return unique response streams. Fixes #21
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

Version History

Version Downloads Last updated
5.0.0 359,701 6/18/2018
4.0.0 54,224 4/16/2018
3.3.0 67,106 3/11/2018
3.2.1 225,977 9/7/2017
3.2.0 11,677 8/31/2017
3.1.0 1,572 8/29/2017
1.5.1 9,411 8/22/2017
1.5.0 131,594 2/23/2017
1.4.1 8,459 1/19/2017
1.4.0 1,522 1/17/2017
1.3.1 42,100 9/19/2016
1.3.0 14,239 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,434 3/1/2016
1.2.1 13,828 5/6/2015
1.2.0 7,257 12/22/2014
1.1.0 340 12/21/2014
1.0.1.79-pre 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