HttpResponse.StartAsync(CancellationToken) Method

Definition

Starts the response by calling OnStarting() and making headers unmodifiable.

C#
public virtual System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);

Parameters

cancellationToken
CancellationToken

Returns

Remarks

If the Microsoft.AspNetCore.Http.Features.IHttpResponseStartFeature isn't set, StartAsync will default to calling HttpResponse.Body.FlushAsync().

Applies to

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