IChannelResponseHandler.ResponseBegin(HttpResponse, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiates the process of sending the HTTP response to the client asynchronously.
public System.Threading.Tasks.Task ResponseBegin(Microsoft.AspNetCore.Http.HttpResponse httpResponse, System.Threading.CancellationToken cancellationToken = default);
abstract member ResponseBegin : Microsoft.AspNetCore.Http.HttpResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ResponseBegin (httpResponse As HttpResponse, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- httpResponse
- HttpResponse
The HTTP response to be sent. Must not be null.
- cancellationToken
- CancellationToken
A token that can be used to cancel the asynchronous operation.
Returns
A task that represents the asynchronous operation of beginning the HTTP response.