Commit Graph

516 Commits

Author SHA1 Message Date
Sergio Benitez 26e64e826e New version: 0.3.16. 2018-08-24 00:17:52 -07:00
Ryan dbcb99ecf2 Force close only the read end of connections.
Previously, when a request's body data exceeded the expected length,
Rocket would shutdown both ends of the corresponding connection. This PR
changes the behavior so that only the read end of the connection, on
Rocket's side, is shutdown. This allows a response to be sent in the
future while still preventing DoS attacks due to exuberant data.

Fixes #386.
2018-08-24 00:09:42 -07:00
Sergio Benitez 5c54335cbb New version: 0.3.15. 2018-07-16 01:16:24 -07:00
Sergio Benitez 48b1491f8f Rename '#[error]' to '#[catch]', 'errors!' to 'catchers!'. 2018-07-02 12:58:43 -07:00
Sergio Benitez f5db11db76 New version: 0.3.14. 2018-06-22 23:25:24 -07:00
Sergio Benitez 904474b4af New version: 0.3.13. 2018-06-16 00:49:17 +02:00
Sergio Benitez c184b0873d New version: 0.3.12. 2018-05-31 20:22:10 +02:00
Sergio Benitez 05fe6c9e65 New version: 0.3.11. 2018-05-19 17:17:53 -07:00
jeb ff5db84111 Update core for latest nightly.
Fixes #643.
2018-05-19 16:32:08 -07:00
Sergio Benitez f1fd1f8645 Fix links to configuration guide. 2018-05-13 23:33:51 -07:00
Sergio Benitez eda1fb5517 New version: 0.3.10. 2018-05-05 00:29:30 -07:00
Sergio Benitez d8ad92d083 Improve robustness of environment variable TOML parser. 2018-05-05 00:22:45 -07:00
Sergio Benitez 4e0b170456 New version: 0.3.9. 2018-04-26 20:00:27 -07:00
Sergio Benitez 067fd82230 Update codegen and core for 2018-04-26 nightly. 2018-04-26 20:00:27 -07:00
Sergio Benitez 18e1a77353 Freeze managed state before launch. 2018-04-26 20:00:27 -07:00
David Wilkening 76135e86c9 Update rustdocs to refer to 256-bit keys everywhere. 2018-04-26 20:00:27 -07:00
Michael Noronha f29e602164 Fix minor typo in rustdocs: 'avaiable' -> 'available'. 2018-04-26 20:00:27 -07:00
ImPerat0R_ b205e6a74f Use correct response code in catcher rustdocs. 2018-04-26 20:00:23 -07:00
Sergio Benitez bebdaabb58 New version: 0.3.8. 2018-04-07 14:12:29 -07:00
Sergio Benitez 56e24bd57f New version: 0.3.7. 2018-04-03 21:12:43 -07:00
Sergio Benitez 3ee9dd661a Remove stabilized feature gates.
These are:

  * i128_type
  * conservative_impl_trait
  * never_type
2018-04-03 20:55:31 -07:00
Sergio Benitez 1731861022 Update pear dependency. 2018-04-03 20:55:31 -07:00
Sergio Benitez 89e64d5ab3 Improve docstring for Collider impl for Route. 2018-04-03 20:55:31 -07:00
Karuna Murti b85cde4a33 Add WASM as known media type. 2018-04-03 20:55:31 -07:00
Nicholas Donnelly 490b46a96b Added WEBM, OGG, and WAV as known media types. 2018-04-03 20:55:31 -07:00
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