Skip to content
Documentation

IDefaultAcceptHeader Interface

Provides the default Accept media type that should be applied to requests that arrive without one (or with an empty or whitespace-only Accept header).

public interface IDefaultAcceptHeader

The value is registered once per host from the configured DefaultAcceptHeader so that every component that needs to honour the default - the request pipeline middleware as well as version-aware endpoint selection - resolves the exact same media type without duplicating either the value or the defaulting logic.

Gets the media type (including any parameters, such as the quality value) to use as the default Accept header.

System.Net.Http.Headers.MediaTypeWithQualityHeaderValue Value { get; }

System.Net.Http.Headers.MediaTypeWithQualityHeaderValue

© 2026 Volue.Version v0.6.38017 November 2026