Sisk

Method

HttpResponse.WriteInlineContentAsync

Namespace
Sisk.Cadente
Assembly
Sisk.Cadente.dll

WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken) #

Asynchronously writes response headers and a known fixed-size body in a single operation.

C#
public ValueTask WriteInlineContentAsync(ReadOnlyMemory<byte> content, CancellationToken cancellationToken = default)

Parameters #

content ReadOnlyMemory<byte>

The response body bytes to write.

cancellationToken CancellationToken

A token used to cancel the write operation.

Returns #

ValueTask

WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken) #

Asynchronously writes response headers and a known fixed-size body in a single operation.

C#
public ValueTask WriteInlineContentAsync(ReadOnlyMemory<byte> content, CancellationToken cancellationToken = default)

Parameters #

content ReadOnlyMemory<byte>

The response body bytes to write.

cancellationToken CancellationToken

A token used to cancel the write operation.

Returns #

ValueTask

Type to search the documentation and the API reference.