private void SendStaticResponse(ResponseDTO responseDto) { StringBuilder headers = _responseBuilder.CreateHeader(responseDto); if (!string.IsNullOrEmpty(responseDto.CookieValue)) { headers.AppendLine(_responseBuilder.CreateCookieHeader(responseDto.CookieValue)); } headers.AppendLine(); headers.AppendLine(responseDto.BodyContent); SendToBrowser(Encoding.ASCII.GetBytes(headers.ToString()), _clientStream); }