JustEat.HttpClientInterception 4.3.0

Prefix Reserved
dotnet add package JustEat.HttpClientInterception --version 4.3.0                
NuGet\Install-Package JustEat.HttpClientInterception -Version 4.3.0                
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="JustEat.HttpClientInterception" Version="4.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JustEat.HttpClientInterception --version 4.3.0                
#r "nuget: JustEat.HttpClientInterception, 4.3.0"                
#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.
// Install JustEat.HttpClientInterception as a Cake Addin
#addin nuget:?package=JustEat.HttpClientInterception&version=4.3.0

// Install JustEat.HttpClientInterception as a Cake Tool
#tool nuget:?package=JustEat.HttpClientInterception&version=4.3.0                

HttpClient Interception

A .NET Standard library for intercepting server-side HTTP dependencies.

NuGet version Build status codecov

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
The best cross-platform Plex media downloader there is! In active development and feedback is very welcome!
josephwoodward/Serilog-Sinks-Loki
A Serilog Sink for Loki, Grafana's new Prometheus inspired log aggregator
Version Downloads Last updated
4.3.0 150,088 4/13/2024
4.2.1 19,300 3/14/2024
4.2.0 22,521 2/6/2024
4.1.0 55,312 12/11/2023
4.0.0 365,246 11/15/2022
3.2.0 11,943 11/15/2022
3.1.2 100,229 8/1/2022
3.1.1 226,227 8/3/2021
3.1.0 150,384 11/10/2020
3.0.0 125,085 10/11/2019
2.0.2 21,615 8/2/2019
2.0.1 20,401 4/28/2019
2.0.0 11,612 3/25/2019
2.0.0-beta1 1,333 3/17/2019
1.2.2 29,068 10/14/2018
1.2.1 19,802 3/11/2018
1.2.0 2,125 3/7/2018
1.1.0 2,887 2/23/2018
1.0.0 4,732 10/2/2017