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 (3)
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.0.0 | 11,463 | 11/12/2024 |
4.3.0 | 204,005 | 4/13/2024 |
4.2.1 | 20,092 | 3/14/2024 |
4.2.0 | 23,415 | 2/6/2024 |
4.1.0 | 57,197 | 12/11/2023 |
4.0.0 | 373,233 | 11/15/2022 |
3.2.0 | 12,186 | 11/15/2022 |
3.1.2 | 102,293 | 8/1/2022 |
3.1.1 | 228,618 | 8/3/2021 |
3.1.0 | 151,446 | 11/10/2020 |
3.0.0 | 125,452 | 10/11/2019 |
2.0.2 | 21,633 | 8/2/2019 |
2.0.1 | 20,411 | 4/28/2019 |
2.0.0 | 11,623 | 3/25/2019 |
2.0.0-beta1 | 1,342 | 3/17/2019 |
1.2.2 | 29,104 | 10/14/2018 |
1.2.1 | 19,816 | 3/11/2018 |
1.2.0 | 2,139 | 3/7/2018 |
1.1.0 | 2,902 | 2/23/2018 |
1.0.0 | 4,771 | 10/2/2017 |
See https://github.com/justeattakeaway/httpclient-interception/releases for details.