Share via


HttpResponseDataExtensions.WriteBytesAsync Method

Definition

Overloads

WriteBytesAsync(HttpResponseData, Byte[])

Asynchronously writes the provided bytes to the response body.

WriteBytesAsync(HttpResponseData, Byte[], CancellationToken)

Asynchronously writes the provided bytes to the response body, and monitors cancellation requests.

WriteBytesAsync(HttpResponseData, Byte[])

Source:
HttpResponseDataExtensions.cs

Asynchronously writes the provided bytes to the response body.

public static System.Threading.Tasks.Task WriteBytesAsync (this Microsoft.Azure.Functions.Worker.Http.HttpResponseData response, byte[] value);
static member WriteBytesAsync : Microsoft.Azure.Functions.Worker.Http.HttpResponseData * byte[] -> System.Threading.Tasks.Task
<Extension()>
Public Function WriteBytesAsync (response As HttpResponseData, value As Byte()) As Task

Parameters

response
HttpResponseData

The response to write the string to.

value
Byte[]

The byte content to write to the request body.

Returns

A Task representing the asynchronous operation.

Applies to

WriteBytesAsync(HttpResponseData, Byte[], CancellationToken)

Source:
HttpResponseDataExtensions.cs

Asynchronously writes the provided bytes to the response body, and monitors cancellation requests.

public static System.Threading.Tasks.Task WriteBytesAsync (this Microsoft.Azure.Functions.Worker.Http.HttpResponseData response, byte[] value, System.Threading.CancellationToken cancellationToken);
static member WriteBytesAsync : Microsoft.Azure.Functions.Worker.Http.HttpResponseData * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function WriteBytesAsync (response As HttpResponseData, value As Byte(), cancellationToken As CancellationToken) As Task

Parameters

response
HttpResponseData

The response to write the string to.

value
Byte[]

The byte content to write to the request body.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A Task representing the asynchronous operation.

Applies to