Rocket/codegen/tests
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
..
compile-fail Don't use &str where RawStr is now preferred. 2017-04-14 00:43:57 -07:00
run-pass Add support for lenient forms via 'LenientForm'. 2017-06-18 01:59:22 -07:00
tests.rs Parallelize testing. Fix compiletest dependencies. 2017-02-02 00:41:47 -08:00