public static void GZipAndSend(byte[] instance, string responseType) { if (CompressionUtils.IsGZipSupported) { CompressionUtils.Send(CompressionUtils.GZip(instance), responseType, true); } else { CompressionUtils.Send(instance, responseType); } }
public static void Send(byte[] instance, string responseType) { CompressionUtils.Send(instance, responseType, false); }