public override string ToString() { StringBuilder response = new StringBuilder(); response.AppendLine($"{GlobalConstants.HttpOneProtocolFragment} {this.StatusCode.GetResponseLine()}"); response.AppendLine(this.Headers.ToString()); response.ToString().TrimEnd(); if (CookieCollection.HasCookies()) { response.AppendLine($"{HttpCookie.SetCookie}: {this.CookieCollection}"); } response.AppendLine(); return(response.ToString()); }