摘要: 一、接收请求 [HttpPost] public string PostAsync() { var stream = HttpContext.Request.Body; var requData = new byte[HttpContext.Request.ContentLength.Value]; 阅读全文
posted @ 2020-10-29 21:40 ljsoftware 阅读(290) 评论(0) 推荐(0)
摘要: 一、内容压缩 public static byte[] WriteGzip(string data) { byte[] buffer = Encoding.UTF8.GetBytes(data); using (MemoryStream ms = new MemoryStream()) { GZip 阅读全文
posted @ 2020-10-29 21:21 ljsoftware 阅读(629) 评论(0) 推荐(0)