public virtual void SendHttpMsg(string data, string url, string method, bool getOriginData = false, bool needResp = true) { if (null == httpMsgRouter) { return; } string directory = url; string parameters = ""; string body = ""; if ("GET" == method.ToUpper() || "DELETE" == method.ToUpper()) { // parameters = ProtoBufUtil.ToUrlParams<T>(obj); } else { body = "content=" + data; //ProtoBufUtil.ToJson<T>(obj); } byte[] bytes = null; Compress.CompressByte(System.Text.Encoding.UTF8.GetBytes(data), out bytes); httpMsgRouter.SendMsg(method, directory, body, parameters, null, false, bytes, needResp); }