IChannelResponseHandler.ResponseBegin(HttpResponse, CancellationToken) Method

Definition

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.

Applies to