Method
HttpResponse.WriteInlineContentAsync
WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken) #
Asynchronously writes response headers and a known fixed-size body in a single operation.
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 #
WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken) #
Asynchronously writes response headers and a known fixed-size body in a single operation.
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.