Lucas Morales
92c7c3493e
Add fragment URI parsing tests.
2018-04-03 20:55:31 -07:00
ta.tanaka
40688a26a6
Fix fragment URI parsing.
2018-04-03 20:55:31 -07:00
Sergio Benitez
1b90f6ac83
Remove unnecessary 'do_match_until' function.
2018-02-25 20:01:52 -08:00
Sergio Benitez
6f505afb33
Fix collisions for strings with different lengths.
...
Previously, a collision check for strings with different lengths would
succeed if one string was both a prefix and a suffix of the other. The
root cause of the bug was a failure to check whether string equality
terminated early due to a matching prefix.
Fixes #574 .
2018-02-25 20:01:47 -08:00
Sergio Benitez
3653a5efd9
Update 'state' to 0.4.
2018-02-25 19:52:10 -08:00
Sergio Benitez
f061c8ba9e
Update yansi and pear dependencies.
2018-02-25 19:50:21 -08:00
Sergio Benitez
444e61f23d
Spiffy up 'uncased_eq' implementation.
2018-02-25 19:48:17 -08:00
Sergio Benitez
d0f002c3d7
Remove unsafe 'from_utf8_unchecked'.
2018-02-25 19:47:06 -08:00
Sergio Benitez
0d9731fbe6
Group 'Rocket.state()' method with other accessors.
2018-01-13 10:58:10 -08:00
Sergio Benitez
174f85e2b9
New version: 0.3.6.
2018-01-12 19:34:16 -08:00
Sergio Benitez
aaa9d6bf98
Update minimum nightly to '2018-01-12'.
...
The '2018-01-12' nightly release includes a commit that reverts the
change that broke 'ring', un-breaking 'ring', and thus un-breaking
Rocket. As a result, the '[patch]' workaround is no longer required.
Rocket is back on the latest nightly!
2018-01-12 19:20:08 -08:00
Sergio Benitez
e836253141
Fix incorrect handling of nested 'attach' calls.
2018-01-12 19:01:43 -08:00
Zachary Golba
39536ca52a
Add 'application/vnd.api+json' as known media type.
2018-01-12 19:01:39 -08:00
Sergio Benitez
ab4b0f4e1d
Add regression test for issue #505 .
2018-01-05 19:40:47 -08:00
Sergio Benitez
5f88380f9c
Update 'state' to '0.3.3' for 'Storage.clone()' fix.
...
Fixes #505 .
2018-01-05 19:40:35 -08:00
Jeb Rosen
581f244e0e
Add 'Rocket::state()' for managed state retrieval.
2017-12-30 16:26:20 -08:00
Sergio Benitez
e1ed038227
Rename 'state' to 'managed' in 'Request' for clarity.
2017-12-30 16:26:10 -08:00
Sergio Benitez
f2e7d41e50
Add 'success_or' methods to 'Outcome'.
2017-12-30 16:25:46 -08:00
Sergio Benitez
4d7c052a92
Clarify that 'Err' response is not a 'Responder'.
2017-12-30 16:25:42 -08:00
Sergio Benitez
3660d00103
Defer NamedFile's Responder impl to File.
2017-12-30 16:24:49 -08:00
Sergio Benitez
4519de7860
New version: 0.3.5.
2017-12-18 06:59:44 -08:00
Sergio Benitez
4f2ab0d2d2
Update codegen and pear_codegen for 2017-12-17 nightly.
2017-12-18 06:57:04 -08:00
Sergio Benitez
cfcfd2d65f
New version: 0.3.4.
2017-12-14 19:17:04 +07:00
Wilson Birney
60a01a1c65
Emit sized body when file length is known in 'NamedFile'.
2017-12-14 18:46:37 +07:00
Sergio Benitez
b744a58ce0
Use correct rustdoc 'html_root_url'.
...
Fixes #474 .
2017-12-14 18:45:23 +07:00
Lukas Kalbertodt
5bf2e0c6be
Remove incorrect statement in 'RawStr' docs.
2017-12-14 18:42:02 +07:00
Ian Létourneau
937c5fb031
Add a 'status::BadRequest' responder.
2017-12-14 18:41:03 +07:00
Tobias Stolzmann
0a0bfceaa8
Fix typo in 'Outcome' docs: 'users' -> 'Users'.
2017-12-14 18:40:18 +07:00
Sergio Benitez
6460be62c3
Use '#[repr(C)]' on 'str' wrappers to guarantee correct layout.
...
Closes #494 .
2017-12-14 18:21:57 +07:00
Sergio Benitez
308dbd76a0
Remove use of now unneeded 'AsciiExt' trait.
2017-11-09 10:21:45 +01:00
Sergio Benitez
028a00becc
New version: 0.3.3.
2017-09-25 21:00:08 -07:00
Sergio Benitez
805b24e60a
Use a 'BufReader' for file-based bodies.
2017-09-25 20:32:43 -07:00
Sergio Benitez
38895fce13
Don't print emojis when colors are disabled.
2017-09-25 20:32:43 -07:00
Joshua Rombauer
42f32351a8
Clarify 'on_request' Fairing documentation.
2017-09-25 20:32:43 -07:00
Sergio Benitez
ef44fc9497
Move handler definitions to top of file.
2017-09-25 20:32:43 -07:00
Sergio Benitez
8faddc118a
Add a 'Responder' impl for 'Vec<u8>'.
2017-09-25 20:32:43 -07:00
Sergio Benitez
b5875cb10b
Add a 'Binary' media type for 'application/octet-stream'.
2017-09-25 20:32:43 -07:00
Sergio Benitez
ab519f2232
Document case-insensitivity of 'from_ext'.
2017-09-25 20:32:43 -07:00
Sergio Benitez
442b714dbb
Document 'FromParam' impl for 'Cow<str>'.
2017-09-25 20:32:43 -07:00
Sergio Benitez
9e4e46fd12
Implement 'FromParam' for 'Cow<str>'.
2017-09-25 20:32:43 -07:00
Lukas Kalbertodt
a6c5a7e31c
Use 'debug_struct' to improve 'Config' 'Debug' impl.
...
Using the method `debug_struct()` of `fmt::Formatter` takes care of
the exact formatting for us. Additionally, it also handles the
"alternate" form of printing enabled with '#'. In the struct case it
prints the struct on multiple lines instead of just one.
This commit also changes the output slightly. Before, the field
`log_level` was printed with `log: {}`. This commit replaces "log"
with "log_level". Additionally, the value of `environment` is now
printed as a struct field instead of being combined with the struct
name.
2017-09-25 20:32:43 -07:00
David Hotham
303e23f720
Remove reliance on 'lookup_host'.
2017-09-25 20:32:43 -07:00
Ram
0d7c0ffd1b
Implement 'From<Status>' for 'Failure'.
...
Resolves #399 .
2017-09-25 20:32:43 -07:00
QuietMisdreavus
2a967fca15
Indent comments to prevent being commonmark code blocks.
2017-09-25 20:32:43 -07:00
Sergio Benitez
02554fe225
Only log nonempty fairing collections.
2017-09-25 20:32:43 -07:00
Sergio Benitez
d82c2d30d0
Improve I/O and BadType config error messages.
2017-09-25 20:32:43 -07:00
Linus Heckemann
b4517461cf
Avoid sorting routes on every add.
2017-09-25 20:32:43 -07:00
Sergio Benitez
7ea05c3d3e
Remove 'drop_types_in_const' feature: stabilized.
2017-09-25 20:32:42 -07:00
Sergio Benitez
5dabb00f2d
New version: 0.3.2.
2017-08-15 12:00:02 -07:00
adrian5
8e28ecc1f1
Add missing comma in 'FromParam' docs.
2017-08-14 13:10:03 -07:00