RequestFormReaderExtensions Class¶
- Namespace
Microsoft.AspNetCore.Http
- Assemblies
- Microsoft.AspNetCore.Http
Syntax¶
public class RequestFormReaderExtensions
-
class
Microsoft.AspNetCore.Http.
RequestFormReaderExtensions
Methods¶
-
ReadFormAsync
(Microsoft.AspNetCore.Http.HttpRequest, Microsoft.AspNetCore.Http.Features.FormOptions, System.Threading.CancellationToken)¶ Read the request body as a form with the given options. These options will only be used if the form has not already been read.
Arguments: - request (Microsoft.AspNetCore.Http.HttpRequest) – The request.
- options (Microsoft.AspNetCore.Http.Features.FormOptions) – Options for reading the form.
Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection>
Returns: The parsed form.
public static Task<IFormCollection> ReadFormAsync(this HttpRequest request, FormOptions options, CancellationToken cancellationToken = null)
-