JustEat.HttpClientInterception
5.0.0
Prefix Reserved
dotnet add package JustEat.HttpClientInterception --version 5.0.0
NuGet\Install-Package JustEat.HttpClientInterception -Version 5.0.0
<PackageReference Include="JustEat.HttpClientInterception" Version="5.0.0" />
paket add JustEat.HttpClientInterception --version 5.0.0
#r "nuget: JustEat.HttpClientInterception, 5.0.0"
// Install JustEat.HttpClientInterception as a Cake Addin #addin nuget:?package=JustEat.HttpClientInterception&version=5.0.0 // Install JustEat.HttpClientInterception as a Cake Tool #tool nuget:?package=JustEat.HttpClientInterception&version=5.0.0
HttpClient Interception
A .NET Standard library for intercepting server-side HTTP dependencies.
Introduction
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.
Feedback
Any feedback or issues for this library can be added to the issues in GitHub.
License
This package is licensed under the Apache 2.0 license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Text.Json (>= 8.0.5)
-
.NETStandard 2.0
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Text.Json (>= 8.0.5)
-
net8.0
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Text.Json (>= 8.0.5)
NuGet packages (4)
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 |
GitHub repositories (4)
Showing the top 4 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
|
|
PlexRipper/PlexRipper
A cross-platform media downloader for Plex, designed to seamlessly add content to your own Plex server!
|
|
josephwoodward/Serilog-Sinks-Loki
A Serilog Sink for Loki, Grafana's new Prometheus inspired log aggregator
|
Version | Downloads | Last updated |
---|---|---|
5.0.0 | 2,631 | 11/12/2024 |
4.3.0 | 170,540 | 4/13/2024 |
4.2.1 | 19,569 | 3/14/2024 |
4.2.0 | 22,775 | 2/6/2024 |
4.1.0 | 55,927 | 12/11/2023 |
4.0.0 | 367,405 | 11/15/2022 |
3.2.0 | 11,999 | 11/15/2022 |
3.1.2 | 100,996 | 8/1/2022 |
3.1.1 | 227,073 | 8/3/2021 |
3.1.0 | 150,808 | 11/10/2020 |
3.0.0 | 125,177 | 10/11/2019 |
2.0.2 | 21,626 | 8/2/2019 |
2.0.1 | 20,406 | 4/28/2019 |
2.0.0 | 11,619 | 3/25/2019 |
2.0.0-beta1 | 1,340 | 3/17/2019 |
1.2.2 | 29,077 | 10/14/2018 |
1.2.1 | 19,807 | 3/11/2018 |
1.2.0 | 2,130 | 3/7/2018 |
1.1.0 | 2,892 | 2/23/2018 |
1.0.0 | 4,753 | 10/2/2017 |
See https://github.com/justeattakeaway/httpclient-interception/releases for details.