Example #1
0
 public static void GZipAndSend(byte[] src, string responseType)
 {
     CompressionUtils.Send(CompressionUtils.GZip(src), responseType);
 }
Example #2
0
 public static void GZipAndSend(string src)
 {
     CompressionUtils.GZipAndSend(src, "application/json");
 }
Example #3
0
 public static void GZipAndSend(string src, string responseType)
 {
     CompressionUtils.GZipAndSend(Encoding.UTF8.GetBytes(src), responseType);
 }
Example #4
0
 public static void GZipAndSend(object src)
 {
     CompressionUtils.GZipAndSend((src != null) ? src.ToString() : "");
 }