MintPlayer.Spark.SafeHttp 11.0.0

dotnet add package MintPlayer.Spark.SafeHttp --version 11.0.0
                    
NuGet\Install-Package MintPlayer.Spark.SafeHttp -Version 11.0.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="MintPlayer.Spark.SafeHttp" Version="11.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MintPlayer.Spark.SafeHttp" Version="11.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MintPlayer.Spark.SafeHttp" />
                    
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 MintPlayer.Spark.SafeHttp --version 11.0.0
                    
#r "nuget: MintPlayer.Spark.SafeHttp, 11.0.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.
#:package MintPlayer.Spark.SafeHttp@11.0.0
                    
#: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=MintPlayer.Spark.SafeHttp&version=11.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MintPlayer.Spark.SafeHttp&version=11.0.0
                    
Install as a Cake Tool

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 = false returns a redirect as it is.
  • No proxy, no cookies; caps on wire bytes, decompressed bytes and time.
  • SafeHttpTrace records the hops and the wire Content-Encoding of one request; ISafeHttpSockets opens 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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