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 IDefaultAcceptHeaderRemarks
Section titled “Remarks”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.
Properties
Section titled “Properties”IDefaultAcceptHeader.Value Property
Section titled “IDefaultAcceptHeader.Value Property”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; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!