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
Sergio Benitez
8de1e32130
Add 'Config::get_string' to retrieve 'String' from extras.
2017-10-05 15:46:40 -07:00
Sergio Benitez
e8ada89197
Remove unneeded 'SpanExt::expand' method.
2017-09-25 21:19:50 -07:00
Sergio Benitez
1ccaccc2d8
Update CHANGELOG for 0.3.3.
2017-09-25 21:08:41 -07:00
Sergio Benitez
651a245bd5
Update codegen for 2017-09-25 nightly.
2017-09-25 19:31:46 -07:00
Sergio Benitez
a60c9e812e
Move handler definitions to top of file.
2017-09-24 20:19:31 -07:00
Sergio Benitez
237c673be4
Rename '#[error]' to '#[catch]', 'errors!' to 'catchers!'.
2017-09-22 19:04:14 -07:00
Sergio Benitez
92ce006e2c
Use the 'response::Result' alias in all 'Responder' impls.
2017-09-21 18:49:28 -07:00
Sergio Benitez
c31ad28efc
Add a 'Responder' impl for 'Vec<u8>'.
2017-09-21 18:48:39 -07:00
Sergio Benitez
96a2f1e4c4
Add a 'Binary' media type for 'application/octet-stream'.
2017-09-21 18:46:48 -07:00
Sergio Benitez
4d9e6afa11
Document case-insensitivity of 'from_ext'.
2017-09-21 18:36:11 -07:00