IFormFeature Interface

Definition

Allows reading the request body as a HTTP form.

public interface class IFormFeature
public interface IFormFeature
type IFormFeature = interface
Public Interface IFormFeature
Derived

Properties

Form

Gets or sets the parsed form.

This API will return a non-null value if the request body was read using ReadFormAsync(CancellationToken) or ReadForm(), or if a value was explicitly assigned.

HasFormContentType

Indicates if the request has a supported form content-type.

Methods

ReadForm()

Parses the request body as a form.

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 ReadFormAsync(CancellationToken) instead.

ReadFormAsync(CancellationToken)

Parses the request body as a form.

Applies to