public override string ToString() { var sb = new StringBuilder(); sb.AppendLine(string.Format("Return Code: {0}", (int)StatusCode)); sb.AppendLine(string.Format("Return Message: {0}", StatusMessage)); sb.AppendLine("Headers"); HttpHeaders.ForEach(header => sb.AppendLine(string.Format("{0}: {1}", header.Name, header.Value))); sb.AppendLine(string.Format("Content: {0}", Content)); return(sb.ToString()); }
internal WebHeaders(HttpHeaders headers) : this() { headers.ForEach(x => Add(x.Key, x.Value)); }