internal async Task SendResponseResultAsync <T>(T data) where T : ResponseResult
        {
            Response.AddContentType(data.ContentType);
            var stream = await data.Serialize().ConfigureAwait(false);

            await WriteDataAsync(stream).ConfigureAwait(false);
        }
        internal async Task SendTextAsync(string input)
        {
            Response.AddContentType(ContentType.PlainText);
            Response.AddContentLenght(input.Length);

            await WriteHeadersAsync().ConfigureAwait(false);

            var writer = new StreamWriter(NetworkStream);
            await writer.WriteAsync(input).ConfigureAwait(false);

            await writer.FlushAsync().ConfigureAwait(false);
        }