Sergio Benitez
ca2bde6386
Slight cleanup of manual_routes example.
2017-03-08 15:22:36 -08:00
aStoate
1683102e74
Add tests for manual_routes example.
2017-03-08 15:18:49 -08:00
Sergio Benitez
fc89d0e96c
Move {json,msgpack}/mod.rs to top-level contrib/src.
2017-03-08 15:17:37 -08:00
Josh Holmer
d43678c35e
Add MsgPack implementation to contrib.
2017-03-08 15:12:00 -08:00
Ryan Leckey
4f704e95f2
Capitalize Rocket in Server response header.
2017-03-08 15:08:50 -08:00
Sergio Benitez
393225cedf
Use ansi_term::Color, not Colour.
2017-03-08 15:08:13 -08:00
Sergio Benitez
a4f532da09
Set examplem versions to 0.0.0.
2017-03-08 14:29:24 -08:00
Sergio Benitez
63e89b04b4
Rename Session::add to Session::set.
...
Also set a default expiration of 3 hours for session cookies.
2017-03-08 14:25:58 -08:00
Sergio Benitez
4f8894f645
Don't allocate a String into after parsing a cookie.
2017-03-08 03:39:57 -08:00
Sergio Benitez
16cb7297ab
Initial session support.
...
This commit includes the following additions:
* A `session` example was added.
* `Config::take_session_key` was removed.
* If a `session_key` is not supplied, one is automatically generated.
* The `Session` type implements signed, encrypted sessions.
* A `Session` can be retrieved via its request guard.
2017-03-08 03:28:12 -08:00
Sergio Benitez
05a458942d
Minor grammar fixes to ISSUE_TEMPLATE.
2017-03-07 02:12:49 -08:00
Sergio Benitez
722ee93f8b
Update to cookie 0.7. Use 256-bit session_keys.
...
This commit involves several breaking changes:
* `session_key` config param must be a 256-bit base64 encoded string.
* `FromRequest` is implemented for `Cookies`, not `Cookie`.
* Only a single `Cookies` instance can be retrieved at a time.
* `Config::take_session_key` returns a `Vec<u8>`.
* `Into<Header>` is implemented for `&Cookie`, not `Cookie`.
2017-03-07 01:19:06 -08:00
Sergio Benitez
6be902162d
New version: 0.2.2.
2017-02-26 18:31:15 -08:00
Sergio Benitez
56a631d4ba
Update codegen for latest nightly.
2017-02-26 18:26:02 -08:00
Sergio Benitez
65c70479f8
Clarify which version of Hyper is benchmarked.
2017-02-25 14:23:08 -08:00
mikejiang
f0836e22fa
Add tests for static_files example.
2017-02-24 18:54:13 -08:00
Sergio Benitez
8bf51d15e3
Add a GitHub issue template.
2017-02-24 15:04:01 -08:00
Sergio Benitez
d99de8e05b
New version: 0.2.1.
2017-02-24 13:57:33 -08:00
Sergio Benitez
efbfbd1045
Add 'into_bytes' and 'into_inner' methods to Body.
2017-02-24 13:20:35 -08:00
Sergio Benitez
62a75cdde6
Use `append_raw` to ensure all headers are set.
...
Fixes #206 .
2017-02-22 11:25:30 -08:00
Sergio Benitez
d89c2a0cb5
Presort routes instead of sorting on each route.
2017-02-18 00:23:20 -08:00
mikejiang
7e7c31b9e7
Add tests for extended_validation example.
2017-02-17 23:35:29 -08:00
Michael Aaron Murphy
4161949a1c
Add webp, ttf, otf, woff, and woff2 as known Content-Types.
2017-02-17 19:13:45 -08:00
Sergio Benitez
46403b8d0a
Iterate through Tera error chain for better errors.
2017-02-17 00:23:41 -08:00
Josh Holmer
937fe50ad7
Fix typo in json example.
2017-02-16 19:09:16 -08:00
Sergio Benitez
0acfea9c71
Remove unnecessary pub qualifier in forms example.
2017-02-16 18:30:44 -08:00
Crazy-Owl
3e063af965
Use managed state in json example.
2017-02-16 18:11:03 -08:00
Sergio Benitez
6184d94619
Expose docstring for JSON Responder impl.
2017-02-16 18:06:09 -08:00
Sergio Benitez
d8afb4c7fa
Implement Display and Error for ConfigError.
...
Closes #189 .
2017-02-15 01:32:57 -08:00
Sergio Benitez
d8b90ebf5f
Readd missing config address test.
2017-02-14 23:34:27 -08:00
Sergio Benitez
0c963da1fd
Fix IPv6 address parsing and validation.
2017-02-14 23:10:36 -08:00
Sergio Benitez
a496d1dbc4
Fix typos in JSON docs.
2017-02-09 00:18:47 -08:00
Sergio Benitez
1e1ff3bd23
Explicitly delete flash cookie so that path is set.
2017-02-08 23:53:29 -08:00
Sergio Benitez
7d2695d19f
Use type index to find type span in unmanaged_state lint.
...
Fixes #179 .
2017-02-08 00:56:17 -08:00
Sergio Benitez
3c8dd0fad8
Fix fallout from latest cargo nightly.
2017-02-08 00:55:22 -08:00
Sergio Benitez
46f753e128
Fix typo in manage docs: referes -> refers.
2017-02-06 10:40:43 -08:00
Sergio Benitez
c7db553286
New version: 0.2.0.
2017-02-06 05:35:19 -08:00
Sergio Benitez
8eef42a256
Compile-time enforce paths as absolute, non-empty, valid segments.
2017-02-06 04:03:30 -08:00
Sergio Benitez
20a548b11b
Add percent_encode method to URI.
2017-02-06 03:41:12 -08:00
Sergio Benitez
ad8f55f64b
Back to expressibility.
2017-02-05 20:21:57 -08:00
Sergio Benitez
92f22ca63b
Fix false positives in unmounted_routes lint due to 'launch'.
2017-02-05 02:11:32 -08:00
Sergio Benitez
0b69a5d8f7
Ensure routes with and without query params don't collide.
2017-02-05 01:43:53 -08:00
Sergio Benitez
e966925455
Use full URI in codegen routes; log query params in routes.
2017-02-05 01:34:48 -08:00
Sergio Benitez
ecd72f686e
Record instances in lint from launch calls.
2017-02-04 13:52:23 -08:00
Sergio Benitez
8b39b88e46
We're searching for expressiveness.
2017-02-03 19:21:19 -08:00
tborsa
4247978888
Fix typo in README: "expressibility".
2017-02-03 19:13:19 -08:00
Sergio Benitez
53390164cd
Remove the unnecessary hidden field in kitchen sink example.
2017-02-03 18:56:05 -08:00
Sergio Benitez
d23a0fa80a
Move lint note message to correct spot.
2017-02-03 17:38:51 -08:00
Sergio Benitez
391628dea9
Fix broken link to IntoValue.
2017-02-03 17:15:29 -08:00
Sergio Benitez
266c62fb22
Implement FromFormValue for contrib UUID.
2017-02-03 17:09:22 -08:00