Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​Features.​IFormFeature
Assembly: Microsoft.AspNetCore.Http.Features
Allows reading the request body as a HTTP form.
Properties
bool
HasFormContentType
Indicates if the request has a supported form content-type.
Form
Gets or sets the parsed form.
<para>
This API will return a non-null value if the
request body was read using <see cref="M:Microsoft.AspNetCore.Http.Features.IFormFeature.ReadFormAsync(System.Threading.CancellationToken)" /> or <see cref="M:Microsoft.AspNetCore.Http.Features.IFormFeature.ReadForm" />, or
if a value was explicitly assigned.
</para>
Methods
ReadForm​()
Parses the request body as a form.
<para>
If the request body has not been previously read, this API performs a synchronous (blocking) read
on the HTTP input stream which may be unsupported or can adversely affect application performance.
Consider using <see cref="M:Microsoft.AspNetCore.Http.Features.IFormFeature.ReadFormAsync(System.Threading.CancellationToken)" /> instead.
</para>
Returns The <see cref="T:Microsoft.AspNetCore.Http.IFormCollection" /> .
System.​Threading.​Tasks.​Task<​IFormCollection>
ReadFormAsync​(System.​Threading.​CancellationToken cancellationToken)
Parses the request body as a form.