net10.0net11.0
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.
Published
Nov 15, 2026
7d ago
Total Downloads
4.7K
4,748
Install
dotnet add package Nullean.Snapshots.Http --version 0.14.0
| Product | Versions |
|---|---|
| .NET |
README
Nullean.Snapshots.Http

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.
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.Shapekeeps only the shape,ReadOnly = truesends no writes, andVariantkeeps one verified file per environment. - In AwesomeAssertions tests use
Nullean.Snapshots.Http.Assertions; from the command line,snap http runandsnap http compare. Parsing and running.httpfiles isNullean.HttpFileParser.
Learn more
- Documentation: https://snapshots.nullean.net
- HTTP snapshots: https://snapshots.nullean.net/formats/http/
- Expected differences: https://snapshots.nullean.net/workflow/expected-differences/
- Source and issues: https://github.com/nullean/snapshots
Changes from Previous Version
No structural changes between v0.13.0 and v0.14.0.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.