Method
HttpRequest.GetBodyContentsAsync
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 #
A Task that returns a Memory of bytes containing the body contents.