HttpRequestFormExtension extension

Cached form parsing for the current HttpRequest.

Returns a FormRequest wrapper. The instance is cached per request using an Expando, so repeated calls reuse the same parser state.

Example:

final form = request.form();
final email = await form.input('email');
on

Methods

form() FormRequest

Available on HttpRequest, provided by the HttpRequestFormExtension extension

Returns the cached FormRequest wrapper for this request.