HttpMock 3.0.1
dotnet add package HttpMock --version 3.0.1
NuGet\Install-Package HttpMock -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HttpMock" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HttpMock" Version="3.0.1" />
<PackageReference Include="HttpMock" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HttpMock --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HttpMock, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HttpMock@3.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HttpMock&version=3.0.1
#tool nuget:?package=HttpMock&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A library for creating Http servers on the fly in tests and stubbing responses. The verification calls have now moved to HttpMock.Verify.NUnit. Pass an ILoggerFactory to HttpServer for logging via any Microsoft.Extensions.Logging-compatible provider (e.g. console, OpenTelemetry). HttpMockLogging.Configure(ILoggerFactory) is available as a global fallback.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on HttpMock:
| Package | Downloads |
|---|---|
|
HttpMock.Verify.NUnit
A library for verifying HTTP calls, mocked with HttpMock |
|
|
HttpMock.Logging.Log4Net
log4net logger for HttpMock |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.1 | 0 | 4/16/2026 |
| 3.0.0 | 0 | 4/16/2026 |
| 2.3.1 | 157,524 | 6/5/2019 |
| 2.3.0 | 54,169 | 2/25/2018 |
| 2.2.1 | 2,800 | 1/26/2018 |
| 2.2.0 | 24,064 | 10/18/2017 |
| 2.1.0 | 13,665 | 6/30/2017 |
| 2.0.2 | 9,890 | 5/19/2017 |
| 2.0.1 | 3,527 | 4/18/2017 |
| 2.0.0 | 3,035 | 3/30/2017 |
| 1.3.3 | 17,716 | 2/10/2017 |
| 1.3.1 | 8,535 | 10/27/2016 |
| 1.3.0 | 10,050 | 7/19/2016 |
| 1.2.1 | 7,365 | 4/14/2016 |
| 1.2.0 | 8,253 | 9/10/2015 |
| 1.1.6 | 2,384 | 8/22/2015 |
| 1.1.5 | 21,205 | 7/25/2014 |
| 1.1.4 | 2,481 | 4/14/2014 |
Loading failed