mirror of https://github.com/rwf2/Rocket.git
a3ea9d0f9a
This commit changes the 'FromForm' trait in two ways: 1. The singular method is now named 'from_form'. 2. The method takes a second parameter: 'strict: bool'. The 'strict' parameter is used to specify whether form parsing should be strict or not (i.e. lenient). When parsing is lenient, extra form fields do not result in an error. This lenient behavior is used by a new 'LenientForm' data guard type to request lenient form parsing. The behavior for 'Form' remains unchanged. Resolves #242. |
||
---|---|---|
.. | ||
form_method-issue-45.rs | ||
form_value_decoding-issue-82.rs | ||
head_handling.rs | ||
limits.rs | ||
mount_point.rs | ||
precise-content-type-matching.rs | ||
query-and-non-query-dont-collide.rs | ||
redirect_from_catcher-issue-113.rs | ||
remote-rewrite.rs | ||
route_guard.rs | ||
segments-issues-41-86.rs | ||
strict_and_lenient_forms.rs |