Commit Graph

1114 Commits

Author SHA1 Message Date
Pyry Kontio b0c1a0a07f Add default catcher for '504: Gateway Timeout'. 2018-01-19 11:44:00 -08:00
Sergio Benitez 5240f860cb Remove superfluous logic in 'Rocket.write_response()'. 2018-01-19 11:23:13 -08:00
Sergio Benitez d2727972fd Always strip bodies on 'HEAD' requests.
Closes #544.
Closes #514.
2018-01-19 11:21:56 -08:00
Sergio Benitez 72d2ccc2a5 Don't preallocate in 'Body.into_bytes()'. 2018-01-19 11:20:06 -08:00
Sergio Benitez f04dc195bd Update 'rusqlite' to fix dependency resolution. 2018-01-19 10:29:51 -08:00
Sergio Benitez 446181e5a6 Fix 'typed-uris-invalid-syntax' UI test for latest nightly. 2018-01-14 09:37:45 -08:00
Sergio Benitez 69abd4fc83 Update dependencies for 'ring' '0.13.0-alpha'.
Closes #533.
2018-01-13 10:51:33 -08:00
Sergio Benitez 267e04883b Add Travis 'env' to run tests with '--release'. 2018-01-13 10:18:26 -08:00
Sergio Benitez 68b49f5d74 Fix compiletest linker flags for release builds. 2018-01-13 10:18:11 -08:00
Sergio Benitez 0f9828d095 Pin 'hyper-sync-rustls' version. 2018-01-13 10:05:30 -08:00
Sergio Benitez dfc6fa13e4 Forward CLI arguments to Cargo in testing script. 2018-01-13 09:25:25 -08:00
Sergio Benitez 1ba71cdb25 Group 'Rocket.state()' method with other accessors. 2018-01-12 20:15:55 -08:00
Sergio Benitez a19d9221d7 Update copyright year in LICENSE-MIT. 2018-01-12 20:07:06 -08:00
Sergio Benitez e6a602cefc Revert nightly workaround in getting started guide. 2018-01-12 20:06:27 -08:00
Sergio Benitez b5bf5361b8 Revert nightly workaround information in README. 2018-01-12 19:57:36 -08:00
Sergio Benitez 4886ca49bf Update CHANGELOG for 0.3.6. 2018-01-12 19:45:52 -08:00
Sergio Benitez 6e968a03ee Update CHANGELOG for 0.3.5. 2018-01-12 19:45:40 -08:00
Sergio Benitez 5d4908e74a 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:44:21 -08:00
Sergio Benitez 8431bfc7ca Revert "Update README with changes to nightly requirements."
This reverts commit 9dc4c260f7.
2018-01-12 19:05:33 -08:00
Sergio Benitez 11b769438c Fix incorrect handling of nested 'attach' calls. 2018-01-12 08:34:53 -08:00
Zachary Golba 9bf33bdd1b Add 'application/vnd.api+json' as known media type. 2018-01-05 19:45:08 -08:00
Sergio Benitez e9c68ba666 Add regression test for issue #505. 2018-01-05 19:36:05 -08:00
Sergio Benitez a583137d96 Update 'state' to '0.3.3' for 'Storage.clone()' fix.
Fixes #505.
2018-01-05 19:36:05 -08:00
Sergio Benitez 65baa83fb4 Update dependencies.
* 'memchr' to 2.0
  * 'base64' to 0.9
  * 'smallvec' to 0.6
  * 'lazy_static' to 1.0

Update example dependencies.

  * 'rand' to 0.4
  * 'parking_lot' to 0.5
2018-01-05 02:00:26 -08:00
Sergio Benitez 1b77376162 Bump 'cookie' dependency for 'SameSite' changes. 2018-01-04 23:47:28 -08:00
Sergio Benitez b352f7c24a Update 'compiletest' to 0.3.5. 2018-01-03 02:46:11 -08:00
Sergio Benitez 24b2818f8c Update diesel to 1.0. 2018-01-03 01:38:11 -08:00
calhilcaw 401bedebb2 Update docs and examples for diesel 1.0.0-rc1. 2018-01-03 01:38:05 -08:00
Stanislav Ivanov 70413b155f Add 'LocalRequest::private_cookie()'.
Resolves #368.
2017-12-29 09:16:08 -08:00
Sergio Benitez dd07c367d5 Add 'Request::client_ip()' method. 2017-12-29 00:40:09 -08:00
Alexander Mielczarek c2899b2391 Don't rewrite request remote. Add 'Request::real_ip()'.
Resolves #479.
2017-12-28 23:51:14 -08:00
Richard McCormack 2f7961f410 Fix typo in state guide: 'simple' -> 'simply'. 2017-12-28 23:21:53 -08:00
Sergio Benitez f7e5c105ee Improve documentation on accessing templating engines. 2017-12-28 22:57:49 -08:00
Sergio Benitez 9f9971f4cf Tidy up handlebars example. 2017-12-28 20:52:03 -08:00
Jeb Rosen f9f1ed75cd Have 'Template::show()' take an '&Rocket'.
This completes the effort started in #431, allowing for direct
customization of the underlying templating engines of 'Template'.

Resolves #64. Closes #234. Closes #431. Closes #500.
2017-12-28 19:57:13 -08:00
Jeb Rosen 80e7339ebe Add 'Rocket::state()' for managed state retrieval. 2017-12-28 19:57:05 -08:00
Ning Sun d79cb9d8f0 Add 'Template::custom()' to customize templating engines. 2017-12-28 19:49:55 -08:00
Max Furman 4be75accf7 Respond to invalid requests with '400 Bad Request'.
Resolves #465.
2017-12-27 23:10:28 -08:00
Sergio Benitez 0101d8bf3a Replace 'egrep' with 'git grep' in testing script. 2017-12-27 20:29:36 -08:00
Sergio Benitez 9dc4c260f7 Update README with changes to nightly requirements. 2017-12-27 19:42:36 -08:00
Sergio Benitez e6c3f328af Unpin nightly in Travis config. 2017-12-27 19:38:59 -08:00
Sergio Benitez b8367d52f8 Update codegen for 2017-12-22 nightly.
This works around #513 by patching 'ring' globally using the new
'[patch]' Cargo section.
2017-12-27 19:37:15 -08:00
Sergio Benitez 3d38e46d7c Use pinned nightly on Travis. 2017-12-27 00:36:45 -08:00
Sergio Benitez 3c2db1c7aa Pin 'compiletest_rs' to compatible versions. 2017-12-27 00:33:51 -08:00
Sergio Benitez 6f35ccb9c9 Document nightly compatibility issues.
Closes #519.
2017-12-26 20:50:56 -08:00
Sergio Benitez 804d2b6603 Add a note to disambiguate '{content,contrib}::Json'. 2017-12-26 20:28:53 -08:00
Sergio Benitez 81bae5246b Rename 'state' to 'managed' in 'Request' for clarity. 2017-12-26 20:27:47 -08:00
Sergio Benitez 94534c3895 List all valid methods in codegen error message. 2017-12-26 10:11:01 -08:00
Sergio Benitez 1ae1bfc101 Add 'success_or' methods to 'Outcome'. 2017-12-23 20:23:03 -08:00
Sergio Benitez 78b10f9bfa Clarify that 'Err' response is not a 'Responder'. 2017-12-21 21:53:13 -08:00