MintPlayer.Spark.SafeHttp
11.0.0-preview.106
See the version list below for details.
dotnet add package MintPlayer.Spark.SafeHttp --version 11.0.0-preview.106
NuGet\Install-Package MintPlayer.Spark.SafeHttp -Version 11.0.0-preview.106
<PackageReference Include="MintPlayer.Spark.SafeHttp" Version="11.0.0-preview.106" />
<PackageVersion Include="MintPlayer.Spark.SafeHttp" Version="11.0.0-preview.106" />
<PackageReference Include="MintPlayer.Spark.SafeHttp" />
paket add MintPlayer.Spark.SafeHttp --version 11.0.0-preview.106
#r "nuget: MintPlayer.Spark.SafeHttp, 11.0.0-preview.106"
#:package MintPlayer.Spark.SafeHttp@11.0.0-preview.106
#addin nuget:?package=MintPlayer.Spark.SafeHttp&version=11.0.0-preview.106&prerelease
#tool nuget:?package=MintPlayer.Spark.SafeHttp&version=11.0.0-preview.106&prerelease
MintPlayer.Spark.SafeHttp
SSRF-safe named HttpClients for fetching URLs that users supply (a site to audit, a JWKS URI, a webhook target).
services.AddSafeHttpClient("MyApp.Fetcher", configuration.GetSection("MyApp:Fetcher"), o => o.MaxRedirects = 2);
var client = httpClientFactory.CreateClient("MyApp.Fetcher");
- Resolves the host, keeps only global unicast addresses (IPv4-mapped, NAT64 and 6to4 unwrapped) and connects to the address it checked, so DNS rebinding cannot swap it.
- Follows redirects itself and checks every hop again; optional
RedirectsWithinOriginOnly;FollowRedirects = falsereturns a redirect as it is. - No proxy, no cookies; caps on wire bytes, decompressed bytes and time.
SafeHttpTracerecords the hops and the wireContent-Encodingof one request;ISafeHttpSocketsopens a raw connection under a named client's rules (for a TLS probe).
A refusal is a SafeHttpBlockedException whose message names no internal detail.
In a Spark application spark.AddSafeHttp() (package MintPlayer.Spark) registers the client Spark.SafeHttp
bound to Spark:SafeHttp. This package carries no RavenDB client and no Spark runtime, so a host that must not reach
a database (SeoTester's fetcher container) can use it on its own.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MintPlayer.Spark.SafeHttp:
| Package | Downloads |
|---|---|
|
MintPlayer.Spark
Low-code .NET framework for building data-driven web applications with minimal boilerplate. Uses PersistentObject pattern to eliminate DTOs and repository layers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0 | 264 | 11/16/2026 |
| 11.0.0-preview.107 | 114 | 11/12/2026 |
| 11.0.0-preview.106 | 744 | 10/24/2026 |
| 11.0.0-preview.105 | 124 | 10/24/2026 |
| 11.0.0-preview.104 | 224 | 10/11/2026 |