类名:WebCompressUtility.cs
代码如下:
调用:
1.WebCompressUtility.IsEncodingAccepted(CompressTypeEnum.gzip, context);
2.WebCompressUtility.SetEncodingAccepted(CompressTypeEnum.gzip, context);
示例:
1 if (WebCompressUtility.IsEncodingAccepted(CompressTypeEnum.gzip, context))
2 {
3 WebCompressUtility.SetEncodingAccepted(CompressTypeEnum.gzip, context);
4 }
2 {
3 WebCompressUtility.SetEncodingAccepted(CompressTypeEnum.gzip, context);
4 }
本文转自王磊的博客博客园博客,原文链接:http://www.cnblogs.com/vipstone/archive/2011/06/21/2086021.html,如需转载请自行联系原作者