HTTP compression OWIN middleware
Switch branches/tags
Nothing to show
Clone or download


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();
            // Adds the SqueezeMe middleware to the pipeline, no config required by default.

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