Info
Version: | 2.0.11 |
Author(s): | Vytautas Klumbys |
Last Update: | Wednesday, March 24, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/Vycka/HttpMockSlim |
NuGet Url: | https://www.nuget.org/packages/Viki.HttpMockSlim |
Install
Install-Package Viki.HttpMockSlim
dotnet add package Viki.HttpMockSlim
paket add Viki.HttpMockSlim
Viki.HttpMockSlim Download (Unzip the "nupkg" after downloading)
Dependencies
- System.Runtime.CompilerServices.Unsafe(>= 4.7.1)
Developed with these requirements in mind:
* Uses .net built-in HttpServer
* No admin-rights necessary
* Concurrency
* Easy to mock responses with funcs or with custom IHttpHandlerMock
Cons:
* It is small, so only simplified handler exists - which supports mocking StatusCode/ContentType/ResponseBody.
* Advanced features require implementing IHttpHandlerMock and handling HttpListenerContext.