Skip to content

proactima/SqueezeMe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SqueezeMe

SqueezeMe provides an OWIN middleware that enables both GZIP and Deflate response compression.

Sample usage

using System.Web.Http;
using Microsoft.Owin;
using Owin;
using SampleApp;
using SqueezeMe;

[assembly: OwinStartup(typeof(Startup))]
namespace SampleApp
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            var config = new HttpConfiguration();
            config.MapHttpAttributeRoutes();
			
            // Adds the SqueezeMe middleware to the pipeline, no config required by default.
            app.UseCompression(); 

            // However, you can supply a list of MIME types to exclude from compression instead.
            app.UseCompression(excludedMimeTypes: new [] { "application/xml" }); 

            app.UseWebApi(config);
        }
    }
}

About

HTTP compression OWIN middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 86.4%
  • PowerShell 13.6%