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
Sergio Benitez
c36701671b
Use a 'BufReader' for file-based bodies.
2017-09-21 18:35:33 -07:00
Sergio Benitez
63169599a7
Convert several 'compilefail' tests to 'ui' tests.
2017-09-21 18:01:56 -07:00
Sergio Benitez
78cc1bda7e
Upgrade to 'compiletest' 0.3.
2017-09-21 17:17:40 -07:00
Sergio Benitez
f9f4822941
Remove now unneeded 'syntax_pos' import.
2017-09-21 16:57:29 -07:00
Sergio Benitez
32eeae1733
Use 'Uri' instead of 'String' in 'Redirect'.
2017-09-15 04:00:50 -07:00
Sergio Benitez
cced491ec9
Implement 'From<Cow<str>>' for 'Uri'.
2017-09-15 03:22:59 -07:00
Sergio Benitez
23093a33b8
Document 'FromParam' impl for 'Cow<str>'.
2017-09-15 02:47:29 -07:00
Sergio Benitez
16feedd563
Remove 'drop_types_in_const' feature: stabilized.
2017-09-14 22:39:19 -07:00
Sergio Benitez
33e9726151
Use 'decl_macro' in markdown docs.
2017-09-14 22:13:07 -07:00
Sergio Benitez
245f815657
Document 'FromUriParam'.
2017-09-14 22:13:07 -07:00
Sergio Benitez
eeef8a44ce
Document the 'uri!' macro.
2017-09-14 22:13:07 -07:00
Sergio Benitez
17b8ab694c
Use 'FromUriParam' trait for better ergonomics in 'uri!'.
2017-09-14 22:13:07 -07:00
Sergio Benitez
3bf577db6e
Handle segments parameters in 'uri!'.
...
This commit also moves the 'uri' module into its own directory,
includes the beginning of the 'FromUriParam' trait, and abandons the
'url' crate in favor of 'percent_encoding' for percent encoding.
2017-09-14 22:13:07 -07:00
Sergio Benitez
5efc4b1096
Rename 'URI' to 'Uri'.
2017-09-14 22:13:07 -07:00
Sergio Benitez
b033a2e2a9
Document 'UriDisplay' trait.
2017-09-14 22:13:03 -07:00
Sergio Benitez
909eae894a
Don't implement 'UriDisplay' for all 'T: Display'.
...
We don't know if that 'Display' implementation is URI safe, so using
it blindly could result in generating bad URIs.
2017-09-14 22:12:54 -07:00
Sergio Benitez
f623d92484
Implement 'FromParam' for 'Cow<str>'.
2017-09-14 22:12:54 -07:00
Sergio Benitez
24f7734c00
Check mount point validity in 'uri!' macro.
2017-09-14 22:12:54 -07:00
Sergio Benitez
d8acd04789
Fix mountpoint in 'mount_point' test.
2017-09-14 22:12:47 -07:00
Sergio Benitez
bbeb95357b
Add compile-fail tests for 'uri!' macro.
2017-09-14 22:12:47 -07:00