I meant response compression and request decompression
1: protected void Application_BeginRequest(object sender, EventArgs e)
2: {
3: if (this.Request.Headers["Accept-Encoding"] != null
4: && this.Request.Headers["Accept-Encoding"].Contains("gzip")
5: && this.Request.Path.ToLower().EndsWith(".aspx"))
6: {
7: this.Response.Filter = new System.IO.Compression.GZipStream(this.Response.Filter, System.IO.Compression.CompressionMode.Compress, true);
8: this.Response.AddHeader("Content-encoding", "gzip");
9: }
10: }
It's what I found for now.
public void Application_BeginRequest() { Request.Filter = ... }
Will it work with ServiceStack?