Table of Contents

Method GetBodyContentsAsync

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

GetBodyContentsAsync(CancellationToken)

Asynchronously reads the request contents as a memory byte array.

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<T> of bytes containing the body contents.