![]() |
VOOZH | about |
dotnet add package JustEat.HttpClientInterception --version 5.1.2
NuGet\Install-Package JustEat.HttpClientInterception -Version 5.1.2
<PackageReference Include="JustEat.HttpClientInterception" Version="5.1.2" />
<PackageVersion Include="JustEat.HttpClientInterception" Version="5.1.2" />Directory.Packages.props
<PackageReference Include="JustEat.HttpClientInterception" />Project file
paket add JustEat.HttpClientInterception --version 5.1.2
#r "nuget: JustEat.HttpClientInterception, 5.1.2"
#:package JustEat.HttpClientInterception@5.1.2
#addin nuget:?package=JustEat.HttpClientInterception&version=5.1.2Install as a Cake Addin
#tool nuget:?package=JustEat.HttpClientInterception&version=5.1.2Install as a Cake Tool
A .NET Standard library for intercepting server-side HTTP dependencies.
👁 NuGet version
👁 Build status
👁 codecov
This library provides functionality for intercepting HTTP requests made using the HttpClient class in code targeting .NET Standard 2.0 (and later), and .NET Framework 4.7.2.
The primary use-case is for providing stub responses for use in tests for applications, such as an ASP.NET Core application, to drive your functional test scenarios.
The library is based around an implementation of DelegatingHandler, which can either be used directly as an implementation of HttpMessageHandler, or can be provided to instances of HttpClient. This also allows it to be registered via Dependency Injection to make it available for use in code under test without the application itself requiring any references to JustEat.HttpClientInterception or any custom abstractions of HttpClient.
This design means that no HTTP server needs to be hosted to proxy traffic to/from, so does not consume any additional system resources, such as needing to bind a port for HTTP traffic, making it lightweight to use.
Any feedback or issues for this library can be added to the issues in GitHub.
This package is licensed under the Apache 2.0 license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 4 NuGet packages that depend on JustEat.HttpClientInterception:
| Package | Downloads |
|---|---|
|
Fun.AspNetCore.Mvc.Testing.HttpClientInterception
Extensions and utility code for testing ASP.NET Core web applications with HttpClient interception |
|
|
BreakPoint.Util.SCCommunication
Logs communications |
|
|
RezisFramework
Package Description |
|
|
MockTracer
Base test class for generated code |
Showing the top 3 popular GitHub repositories that depend on JustEat.HttpClientInterception:
| Repository | Stars |
|---|---|
|
aspnet-contrib/AspNet.Security.OAuth.Providers
OAuth 2.0 social authentication providers for ASP.NET Core
|
|
|
martincostello/dotnet-minimal-api-integration-testing
An example of integration testing ASP.NET Core Minimal hosting and APIs
|
|
|
josephwoodward/Serilog-Sinks-Loki
A Serilog Sink for Loki, Grafana's new Prometheus inspired log aggregator
|
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.2 | 336,527 | 7/3/2025 |
| 5.1.1 | 53,902 | 3/8/2025 |
| 5.1.0 | 25,897 | 2/5/2025 |
| 5.0.0 | 98,781 | 11/12/2024 |
| 4.3.0 | 488,447 | 4/13/2024 |
| 4.2.1 | 28,020 | 3/14/2024 |
| 4.2.0 | 28,507 | 2/6/2024 |
| 4.1.0 | 65,527 | 12/11/2023 |
| 4.0.0 | 509,988 | 11/15/2022 |
| 3.2.0 | 19,898 | 11/15/2022 |
| 3.1.2 | 106,498 | 8/1/2022 |
| 3.1.1 | 256,964 | 8/3/2021 |
| 3.1.0 | 169,298 | 11/10/2020 |
| 3.0.0 | 133,765 | 10/11/2019 |
| 2.0.2 | 22,009 | 8/2/2019 |
| 2.0.1 | 20,821 | 4/28/2019 |
| 2.0.0 | 11,888 | 3/25/2019 |
| 2.0.0-beta1 | 1,604 | 3/17/2019 |
| 1.2.2 | 32,959 | 10/14/2018 |
| 1.2.1 | 20,373 | 3/11/2018 |
See https://github.com/justeattakeaway/httpclient-interception/releases for details.