Nullean.Snapshots.Http 0.12.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Nullean.Snapshots.Http --version 0.12.2
                    
NuGet\Install-Package Nullean.Snapshots.Http -Version 0.12.2
                    
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="Nullean.Snapshots.Http" Version="0.12.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nullean.Snapshots.Http" Version="0.12.2" />
                    
Directory.Packages.props
<PackageReference Include="Nullean.Snapshots.Http" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nullean.Snapshots.Http --version 0.12.2
                    
#r "nuget: Nullean.Snapshots.Http, 0.12.2"
                    
#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.
#:package Nullean.Snapshots.Http@0.12.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nullean.Snapshots.Http&version=0.12.2
                    
Install as a Cake Addin
#tool nuget:?package=Nullean.Snapshots.Http&version=0.12.2
                    
Install as a Cake Tool

Nullean.Snapshots.Http

snapshots.

HTTP snapshots for Nullean.Snapshots: snapshot an HttpResponseMessage, or run a .http file and compare every response, status, chosen headers and JSON bodies as trees, with secrets redacted.

NuGet

Install

dotnet add package Nullean.Snapshots.Http

Quick start

Run a .http file and compare it with its verified file, without a test framework:

using Nullean.Snapshots.Http;

public static class OrdersCheck
{
	public static async Task CheckAsync(HttpClient client)
	{
		var options = new HttpFileSnapshotOptions { Client = client, Environment = "test" };
		var transcript = await HttpFileSnapshot.RunAsync("http/orders.http", options);
		var result = HttpFileSnapshot.Match(transcript);           // .snapshots/http/orders.verified.responses
		if (!result.Passed)
			throw new InvalidOperationException(result.FailureMessage);
	}
}
  • HttpSnapshot.RenderAsync(response, new HttpSnapshotOptions { Headers = ["x-request-id"] }) renders one response.
  • A live service: Transcript = TranscriptMode.Shape keeps only the shape, ReadOnly = true sends no writes, and Variant keeps one verified file per environment.
  • In AwesomeAssertions tests use Nullean.Snapshots.Http.Assertions; from the command line, snap http run and snap http compare. Parsing and running .http files is Nullean.HttpFileParser.

Learn more

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nullean.Snapshots.Http:

Package Downloads
Nullean.Snapshots.Http.Assertions

AwesomeAssertions extensions for Nullean.Snapshots.Http: MatchHttpSnapshot, MatchHttpFileSnapshot and HttpFileTest.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.18.1 86 11/24/2026
0.18.0 2,140 11/17/2026
0.17.0 118 11/17/2026
0.16.0 112 11/16/2026
0.15.0 270 11/16/2026
0.14.0 205 11/15/2026
0.13.0 103 11/14/2026
0.12.2 106 11/14/2026
0.12.1 105 11/12/2026
0.12.0 100 11/12/2026
0.11.0 354 11/11/2026
0.10.1 147 11/11/2026
0.10.0 111 11/11/2026
0.9.0 107 11/11/2026
0.8.1 260 11/11/2026
0.8.0 182 11/11/2026
0.7.0 253 11/10/2026
0.6.0 234 11/5/2026
0.5.0 100 11/5/2026
0.4.0 429 11/5/2026
Loading failed