Files
CompressR/src/CompressR.Owin.Sample/Startup.cs
2017-02-18 19:40:56 -05:00

21 lines
473 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Owin;
namespace CompressR.Owin.Sample
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.Use<GzipMiddleware>();
app.Run(context =>
{
context.Response.ContentType = "text/plain";
return context.Response.WriteAsync("Hello World!");
});
}
}
}