Table of Contents

Class ContentNegotiationExtensions

Namespace
Steeltoe.Management.EndpointCore.ContentNegotiation
Assembly
Steeltoe.Management.EndpointCore.dll
public static class ContentNegotiationExtensions
Inheritance
ContentNegotiationExtensions
Inherited Members

Methods

HandleContentNegotiation(HttpContext, ILogger)

public static void HandleContentNegotiation(this HttpContext context, ILogger logger)

Parameters

context HttpContext
logger ILogger

LogContentType(ILogger, IHeaderDictionary, string)

public static void LogContentType(this ILogger logger, IHeaderDictionary requestHeaders, string contentType)

Parameters

logger ILogger
requestHeaders IHeaderDictionary
contentType string

SetContentType(IHeaderDictionary, IHeaderDictionary, ILogger, MediaTypeVersion)

public static void SetContentType(this IHeaderDictionary responseHeaders, IHeaderDictionary requestHeaders, ILogger logger, MediaTypeVersion version = MediaTypeVersion.V2)

Parameters

responseHeaders IHeaderDictionary
requestHeaders IHeaderDictionary
logger ILogger
version MediaTypeVersion