Commit Graph

890 Commits

Author SHA1 Message Date
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
Sergio Benitez ed0ed2a396 Defer NamedFile's Responder impl to File. 2017-12-21 21:51:36 -08:00
Sergio Benitez a9c66c9426 Update codegen and pear_codegen for 2017-12-17 nightly. 2017-12-18 06:50:27 -08:00
Sergio Benitez 5b85a05366 Automatically set release date in 'bump_version.sh'. 2017-12-14 23:10:21 -08:00
Sergio Benitez d22dbfbded Update codegen for 2017-12-14 nightly. 2017-12-14 23:09:59 -08:00
Sergio Benitez 6e18093c3a Update CHANGELOG for 0.3.4. 2017-12-14 19:35:15 +07:00
toddWannaCode 3be6b6c4a6 Fix link to forms example in requests guide. 2017-12-14 18:39:10 +07:00
Sergio Benitez fabe7ef06e Bump codegen nightly requirement to 2017-12-13. 2017-12-14 18:12:45 +07:00
Sergio Benitez 5922eb50b4 Use '#[repr(C)]' on 'str' wrappers to guarantee correct layout.
Closes #494.
2017-12-14 18:10:24 +07:00
Sergio Benitez 4ea9b046cd Update codegen for 2017-12-11 nightly. 2017-12-14 15:09:48 +07:00
Wilson Birney 4749b541a9 Emit sized body when file length is known in 'NamedFile'. 2017-11-29 23:47:53 -08:00
Sergio Benitez aad97e6be0 Use correct rustdoc 'html_root_url'.
Fixes #474.
2017-11-22 10:58:20 -08:00
Cole R Lawrence edb494c6c3 Fix typo in fairings guide: 'event' -> 'events'. 2017-11-17 13:20:30 -08:00
Tobias Stolzmann 309ae6348c Fix typo in 'Outcome' docs: 'users' -> 'Users'. 2017-11-17 12:39:36 -08:00
Tobias Stolzmann af58f72018 Use absolute path in 'catchers!' generated code. 2017-11-17 12:37:56 -08:00
Lukas Kalbertodt a8e9362b38 Remove incorrect statement in 'RawStr' docs. 2017-11-17 12:36:03 -08:00
Ian Létourneau 7ae9bb678c Add a 'status::BadRequest' responder. 2017-11-17 12:34:38 -08:00
Sergio Benitez bbad1a11ec Use 'into()' in handlebars templates tests. 2017-11-17 12:25:33 -08:00
Sergio Benitez f87b46d6c5 Fix incorrect emission of config errors from templates. 2017-11-17 12:24:33 -08:00
Sergio Benitez 0d2585051d Fixup Tera templates example for master. 2017-11-17 12:23:51 -08:00
lerina 7bda1b527b Added Tera templates example. 2017-11-17 12:07:53 -08:00
Sergio Benitez d136332e91 Update 'stderr' messages for latest nightly. 2017-11-09 10:21:01 +01:00
Sergio Benitez 1d53fee0d3 Remove use of now unneeded 'AsciiExt' trait. 2017-11-09 10:10:14 +01:00
Sergio Benitez 07d4d23cc8 Update dependencies. 2017-10-09 20:15:18 -07:00
Sergio Benitez a90d625abe Set safer defaults for private cookies. 2017-10-05 21:58:27 -07:00