public static Task End(this HttpResponse response, string data) { var bytes = Encoding.UTF8.GetBytes(data); response.ContentLength = bytes.Length; response.Body.Write(bytes, 0, bytes.Length); return response.Body.FlushAsync(); } }