压缩Asp.Net的响应流节省带宽
现在,我们实现一个HttpModule来压缩Asp.Net的响应流,下面是代码示例using System;
using System.IO;
using System.IO.Compression;
using System.Globalization;
using System.Web;
public class JsonCompressionModule : IHttpModule
{
public JsonCompressionModule()
{
}
... 阅读全文