JustEat.HttpClientInterception 4.2.1

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

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

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 109,166 4/13/2024
4.2.1 18,390 3/14/2024
4.2.0 21,299 2/6/2024
4.1.0 53,753 12/11/2023
4.0.0 355,955 11/15/2022
3.2.0 11,687 11/15/2022
3.1.2 98,992 8/1/2022
3.1.1 223,709 8/3/2021
3.1.0 149,466 11/10/2020
3.0.0 124,784 10/11/2019
2.0.2 21,571 8/2/2019
2.0.1 20,400 4/28/2019
2.0.0 11,610 3/25/2019
2.0.0-beta1 1,332 3/17/2019
1.2.2 29,055 10/14/2018
1.2.1 19,799 3/11/2018
1.2.0 2,124 3/7/2018
1.1.0 2,883 2/23/2018
1.0.0 4,707 10/2/2017