Sisk

Method

HttpRequest.GetBodyContentsAsync

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

GetBodyContentsAsync(CancellationToken) #

Asynchronously reads the request contents as a memory byte array.

C#
public Task<Memory<byte>> GetBodyContentsAsync(CancellationToken cancellation = default)

Parameters #

cancellation CancellationToken

A CancellationToken to cancel the operation.

Returns #

Task<Memory<byte>>

A Task that returns a Memory of bytes containing the body contents.

Type to search the documentation and the API reference.