Skip to content

Informatievlaanderen/default-response-compression-quality-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Be.Vlaanderen.Basisregisters.AspNetCore.Mvc.Middleware.DefaultResponseCompressionQuality Build Status

ASP.NET Core MVC Middleware to define default compression quality priorities.

Usage

public void Configure(IApplicationBuilder app, ...)
{
    app
        ...
        .UseMiddleware<DefaultResponseCompressionQualityMiddleware>(new Dictionary<string, double>
        {
            { "br", 1.0 },
            { "gzip", 0.9 }
        })
        ...
        .UseResponseCompression()
        ...
}