Rocket/codegen/tests/run-pass
Sergio Benitez a3ea9d0f9a Add support for lenient forms via 'LenientForm'.
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.
2017-06-18 01:59:22 -07:00
..
complete-decorator.rs Use the `RawStr` type for raw parameter strings. 2017-03-31 00:18:58 -07:00
custom-content-type.rs Warn, but don't error, on unknown route formats. 2016-12-27 15:30:33 -06:00
derive_form.rs Add support for lenient forms via 'LenientForm'. 2017-06-18 01:59:22 -07:00
dynamic-paths.rs Use the `RawStr` type for raw parameter strings. 2017-03-31 00:18:58 -07:00
empty-fn.rs Compile-time enforce paths as absolute, non-empty, valid segments. 2017-02-06 04:03:30 -08:00
empty_form.rs Add support for lenient forms via 'LenientForm'. 2017-06-18 01:59:22 -07:00
error-handler.rs Completely new raw API. 2016-10-07 23:20:49 -07:00
form-field-rename.rs Add support for lenient forms via 'LenientForm'. 2017-06-18 01:59:22 -07:00
instanced-mounting.rs Improve lints: gather info on per-instance basis. 2017-01-31 02:01:30 -08:00
issue-1-colliding-names.rs Use the `RawStr` type for raw parameter strings. 2017-03-31 00:18:58 -07:00
methods.rs Reenable the options decorator. 2017-02-02 15:02:32 -08:00
rank_decorator.rs Allow different lifetimes in handler Request reference and its contents. 2016-10-06 20:38:13 -07:00
refactored_rocket_no_lint_errors.rs Fix false positives in unmounted_routes lint due to 'launch'. 2017-02-05 02:11:32 -08:00
segments.rs Fix security checks in `PathBuf::FromSegments`. 2017-01-13 13:25:33 -08:00
type-alias-lints.rs Use type index to find type span in unmanaged_state lint. 2017-02-08 00:56:17 -08:00