Eigenverft.WebLib.Infrastructure
  • Guides
  • API
Show / Hide Table of Contents
  • Eigenverft.WebLib.Infrastructure.Hosting
    • HttpResponseExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Configuration.Values
    • AspNetDataProtectionConfigurationValueCodecs
  • Eigenverft.WebLib.Infrastructure.Hosting.DirectoryLayout
    • WebApplicationBuilderFactory
  • Eigenverft.WebLib.Infrastructure.Hosting.Features
    • HttpContextFeatureExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Hsts
    • WebLibHstsExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Kestrel
    • ConfigureWebHostBuilderExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Middleware.CanonicalHostRedirect
    • CanonicalHostMode
    • CanonicalHostRedirectExtensions
    • CanonicalHostRedirectOptions
  • Eigenverft.WebLib.Infrastructure.Hosting.Middleware.ClientNetwork
    • ClientForwardedIpAddress
    • ClientForwardedIpSource
    • ClientNetworkApplicationBuilderExtensions
    • ClientNetworkMiddleware
    • IClientNetworkFeature
  • Eigenverft.WebLib.Infrastructure.Hosting.Middleware.HealthProbeFaviconAware
    • HealthProbeFaviconAwareExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Middleware.Infrastructure
    • ApplicationBuilderMiddlewareExtensions
    • ServiceProviderRegistrationExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.Pipeline
    • PipelinePartitioningExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.RateLimiting
    • MissingClientIpBehavior
    • WebLibRequestTrafficShapingOptions
    • WebLibRequestTrafficShapingPerClientOptions
    • WebLibRequestTrafficShapingServerWideOptions
    • WebLibRequestTrafficShapingServiceCollectionExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.RequestTrafficLogging
    • RequestTrafficLoggingApplicationBuilderExtensions
    • RequestTrafficLoggingFields
    • RequestTrafficLoggingOptions
    • RequestTrafficLoggingServiceCollectionExtensions
    • SensitiveValueMode
  • Eigenverft.WebLib.Infrastructure.Hosting.SelfHttpWarmup
    • SelfHttpWarmupOptions
    • SelfHttpWarmupServiceCollectionExtensions
  • Eigenverft.WebLib.Infrastructure.Hosting.StaticFiles
    • AdditionalMappings
    • StaticFileAdditionalMappings
    • StaticFileApplicationBuilderExtensions
  • Eigenverft.WebLib.Infrastructure.Transformations
    • AspNetDataProtectionStringTransforms

Class AdditionalMappings

Provides predefined groups of MIME mappings that backfill extensions missing from the target framework's ASP.NET Core static-file defaults.

Inheritance
object
AdditionalMappings
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.StaticFiles
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class AdditionalMappings

Properties

| Edit this page View Source

Media

Backfills web-media mappings that differ across the supported ASP.NET Core target frameworks.

Declaration
public static StaticFileAdditionalMappings Media { get; }
Property Value
Type Description
StaticFileAdditionalMappings
Remarks

On net8.0, this adds .avif as image/avif. ASP.NET Core 10 already provides that mapping, so the group is intentionally empty on net10.0.

| Edit this page View Source

WebApp

Backfills static-file mappings needed by legacy PWA/Blazor hosting that are still absent from the current ASP.NET Core defaults.

Declaration
public static StaticFileAdditionalMappings WebApp { get; }
Property Value
Type Description
StaticFileAdditionalMappings
Remarks

ASP.NET Core already maps .webmanifest and .wasm for the supported target frameworks, so this group currently adds only .br and .dat as application/octet-stream.

Methods

| Edit this page View Source

Combine(params StaticFileAdditionalMappings[])

Combines multiple predefined mapping groups into one typed group.

Declaration
public static StaticFileAdditionalMappings Combine(params StaticFileAdditionalMappings[] groups)
Parameters
Type Name Description
StaticFileAdditionalMappings[] groups

The groups to combine.

Returns
Type Description
StaticFileAdditionalMappings

A mapping group containing the union of the supplied groups.

  • Edit this page
  • View Source
In this article
Back to top