HttpResponse.CompleteAsync Method

Definition

Flush any remaining response headers, data, or trailers. This may throw if the response is in an invalid state such as a Content-Length mismatch.

C#
public virtual System.Threading.Tasks.Task CompleteAsync ();

Returns

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0