RichardSzalay.MockHttp 3.2.0

Testing layer for Microsoft's HttpClient library

No packages depend on RichardSzalay.MockHttp.

3.2.0 - MockHttpMessageHandler now tracks successful matches. Fixes #35 - Added WithExactQueryString / WithExactFormData overloads. Fixes #37 - Added BackendDefinitionBehavior to allow matching Backend Definitions when Request Expectations exist, but don't match. Fixes #45 - Fixed typo in Response(HttpResponseMessage) obsolete message. Fixes #44 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

.NETPortable 0.0

MonoTouch 1.0

  • No dependencies.

.NET Framework 4.0

.NET Framework 4.5

.NET Standard 1.1

MonoAndroid 1.0

  • No dependencies.

.NETPortable 0.0

  • No dependencies.

Version Downloads Last updated
7.0.0 14 03/06/2025
6.0.0 10 06/26/2023
4.0.0 9 03/06/2025
3.3.0 9 03/06/2025
3.2.1 9 03/06/2025
3.2.0 10 03/09/2025
1.5.1 10 03/06/2025
1.5.0 11 03/06/2025
1.4.1 9 03/06/2025
1.3.1 9 03/09/2025
1.3.0-netstandard-alpha2 10 03/06/2025
1.3.0-netstandard-alpha1 12 03/06/2025
1.2.2 9 03/06/2025
1.2.1 9 03/06/2025
1.1.0 9 03/06/2025
1.0.1.79-pre 11 03/06/2025
1.0.1 10 03/06/2025
1.0.1-beta 9 03/09/2025
1.0.0-beta 9 03/06/2025