Sergio Benitez
39c979db4c
Add library and usage information to main API doc.
2016-10-02 17:52:04 -07:00
Sergio Benitez
7dc6e432b8
Change wordering of ContentType structure docs.
2016-09-30 20:31:32 -07:00
Sergio Benitez
320f2e0efa
Document Request.
2016-09-30 20:22:06 -07:00
Sergio Benitez
9e402dfd07
Revert visibility change in ContentType constructor.
2016-09-30 20:10:49 -07:00
Sergio Benitez
57f79ca867
Document ContentType.
2016-09-30 20:04:43 -07:00
Sergio Benitez
a29d56c52e
Reform top-level libs mostly according to Rustfmt.
2016-09-30 15:20:11 -07:00
Sergio Benitez
008605bec7
This commit changes parsing traits and documents some of the core library:
...
* All From* trait methods are now named like the trait.
* All From* traits have an associated Error type.
* Document all of the `form` module.
* Add codegen tests for auto-derived forms.
* The param parsing traits now live under Request.
2016-09-30 01:25:07 -07:00
Sergio Benitez
76cbc14d23
Cleanup core library documentation.
2016-09-29 21:44:27 -07:00
Sergio Benitez
1c4e0350d9
Use strict version numbers. Bump Rocket version.
2016-09-29 20:49:18 -07:00
Sergio Benitez
a6cd1bd5bd
Clean-up form parsing tests.
2016-09-28 20:39:25 -07:00
Sergio Benitez
23808d00bc
This commit squash three form-related commits:
...
Remove form_items function in favor of FormItems iterator.
Add specialized `bool` implementation of FromFormValue.
Add `&str` implementation of FromFormValue for debugging.
2016-09-28 19:29:18 -07:00
Sergio Benitez
b72ac78ce8
Add file test case for streaming. Fix streaming responder.
...
resolves #3
2016-09-25 04:07:03 -07:00
Sergio Benitez
5b5cb7e087
Send the correct content type in Template contrib.
2016-09-25 03:06:02 -07:00
Sergio Benitez
b175de03ad
Move extension derived content type into ContentType.
2016-09-25 02:51:18 -07:00
Sergio Benitez
cd4af6836a
Add request preprocessing for _method in forms.
...
resolves #12
2016-09-25 02:26:15 -07:00
Sergio Benitez
a967018009
Add guide outline. Remove unused file.
2016-09-22 22:09:41 -07:00
Sergio Benitez
f74e286e31
Add templating support in contrib crate.
...
The contrib crate now contains support for both Handlebars and Tera. No
documentation yet.
resolves #5
2016-09-22 04:12:07 -07:00
Sergio Benitez
53e5377482
Change meaning of Outcome::Bad.
2016-09-21 18:31:26 -07:00
Sergio Benitez
81fbc0625d
Add Bad outcome. Mock config code.
2016-09-21 18:23:44 -07:00
Sergio Benitez
47edc65d34
Rename data_type to data and don't export inner types.
2016-09-20 20:02:33 -07:00
Sergio Benitez
a3218192dd
Add contrib crate. Add JSON to contrib. Add JSON example.
2016-09-19 16:24:01 -07:00
Sergio Benitez
8824d498d1
Add streaming responder and example.
2016-09-12 02:43:34 -07:00
Sergio Benitez
4e03bb6107
Add NamedFile response type.
2016-09-12 01:51:02 -07:00
Sergio Benitez
21e26c32c0
Bump version numbers. Approaching release!
2016-09-11 18:57:47 -07:00
Sergio Benitez
e8e85f09cd
Add support for flash cookie. Revamp cookie support.
2016-09-11 18:57:04 -07:00
Sergio Benitez
9a9d07f044
Improve default catcher error messages.
2016-09-09 01:00:51 -07:00
Sergio Benitez
f259593727
Use a generic ToString object in new.
2016-09-08 00:25:40 -07:00
Sergio Benitez
b755e53f63
Add trailing params.
2016-09-08 00:02:17 -07:00
Sergio Benitez
a6967cb48f
Strip lifetimes for generated param types.
2016-09-06 23:24:20 -07:00
Sergio Benitez
327b28a98e
Add query params to Rocket. Use Ident for attribute params.
2016-09-04 19:18:08 -07:00
Sergio Benitez
7f54c9036f
Return HTML for default catchers.
2016-09-04 14:24:36 -07:00
Sergio Benitez
4d301eebbd
Complete overhaul complete.
2016-09-04 04:06:28 -07:00
Sergio Benitez
a42d7f8668
Complete rewrite of macro parsing and item generation.
2016-09-04 01:05:17 -07:00
Sergio Benitez
bb9faeb344
Version bump.
2016-08-27 05:34:06 -07:00
Sergio Benitez
8b99016af4
Add `rank` to route attribute. Macrofy is_some ContentType methods.
2016-08-27 05:10:29 -07:00
Sergio Benitez
2fe13b2fe8
Clippyfied the library.
2016-08-26 22:05:33 -07:00
Sergio Benitez
c058694bd0
Add more ranked routing tests.
2016-08-26 21:48:16 -07:00
Sergio Benitez
a34374d913
Output all matching routes, not just first ranked.
2016-08-26 21:34:28 -07:00
Sergio Benitez
860b302793
Change rank meaning: lower means higher priority.
2016-08-26 19:03:21 -07:00
Sergio Benitez
a1ad05e879
This commit is a squash of the following commits:
...
* Add content-type responsers for JSON, HTML, and plain text.
* Use content-type responders in content_type example.
* Conditionally create Request `from` HypRequest.
* Clean-up dispatching and handling in main rocket.
* Change Level enum to Logging Level and reexport.
* Allow users to set logging level before launch.
* Fix content_type example error handling.
* Percent decode params when user requests `String`.
2016-08-26 18:37:28 -07:00
Sergio Benitez
90d8621adf
Major overhual: Request, ErrorHandler, ContentType.
2016-08-26 01:55:11 -07:00
Sergio Benitez
81bc2466eb
Add missing logger file.
2016-08-24 01:34:00 -07:00
Sergio Benitez
868448c4b3
Use log crate for cleaner, more flexible logging.
2016-08-24 01:30:09 -07:00
Sergio Benitez
b51cb22f87
Fix Route::ranked type signature.
2016-08-22 20:38:39 -07:00
Sergio Benitez
bd9d553050
New type: ContentType. Parse ContentType from attribute.
2016-08-22 20:34:22 -07:00
Sergio Benitez
3a89cb8e2b
Can now retrieve cookies from a handler. SWEET! Bumped version to 0.0.5.
2016-08-08 03:48:00 -07:00
Sergio Benitez
95a8a51b76
Added FromRequest and modified macro to use it: any parameters not declared by the user in the attributes will automatically be retrieved using FromRequest.
2016-08-08 03:10:23 -07:00
Sergio Benitez
bceb1ecfb6
Added Cookied as a response: can now set cookies. Added example of setting cookies. Working on retrieving them.
2016-08-06 23:14:05 -07:00
Sergio Benitez
578b50b1f9
Fully working todo example. Apparently didn't commit in a while. Need to be better at that.
2016-08-01 19:07:36 -07:00
Sergio Benitez
92671a0cba
Overhealed route decorator. URI struct now understands query part.
2016-07-18 21:11:22 -07:00