Example #1
0
 public static byte[] PackRespose(HttpHeadInfo httpHeadInfo, byte[] rawBytes)
 {
     byte[] codeBytes = HttpHeadInfo.ToBytes(httpHeadInfo);
     return(codeBytes.Concat(rawBytes).ToArray());
 }
Example #2
0
 public static byte[] PackRespose(HttpHeadInfo httpHeadInfo, ListDictionary msgItems)
 {
     byte[] codeBytes = HttpHeadInfo.ToBytes(httpHeadInfo);
     byte[] rawBytes  = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(msgItems, jsonSettings));
     return(codeBytes.Concat(rawBytes).ToArray());
 }