Sisk

Method

HttpRequest.GetMultipartFormContentAsync

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

GetMultipartFormContentAsync(CancellationToken) #

Asynchronously reads the request body and obtains a MultipartFormCollection from it.

C#
public Task<MultipartFormCollection> GetMultipartFormContentAsync(CancellationToken cancellation = default)

Parameters #

cancellation CancellationToken

A CancellationToken to cancel the asynchronous operation.

Returns #

Task<MultipartFormCollection>

A Task that represents the asynchronous operation, containing a MultipartFormCollection instance representing the multipart form content of the request.

Exceptions #

HttpRequestException

If an error occurs while parsing the multipart form content.

Type to search the documentation and the API reference.