Commit Graph

117 Commits

Author SHA1 Message Date
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 96ee1b10d4 Pull in remote master. 2016-09-19 16:25:08 -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 ea240b9b58 Merge pull request #7 from SergioBenitez/new-docs
Update the main README file to include an overview.
2016-09-13 16:54:45 -07:00
Sergio Benitez 1c00793d0d Add overview to README. 2016-09-13 16:33:16 -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 9edb1e34d2 Update badge URL in README. 2016-09-12 01:46:08 -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 8fee2bbf38 Update Travis badge. 2016-09-08 20:41:00 -07:00
Sergio Benitez 46f73ed57c Renamed macros to codegen. 2016-09-08 20:38:58 -07:00
Sergio Benitez f14dec0728 Use proper ident definition. Add param parse tests. 2016-09-08 20:25:07 -07:00
Sergio Benitez 155ef0d26d Remove codegen_tests dir. 2016-09-08 17:10:10 -07:00
Sergio Benitez 5915c69f39 Fixed unchecked unwrap. Added codegen tests. 2016-09-08 17:09:35 -07:00
Sergio Benitez f259593727 Use a generic ToString object in new. 2016-09-08 00:25:40 -07:00
Sergio Benitez 32bf3e1737 Add more files to static_files example. 2016-09-08 00:02:35 -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 ec38d70449 Slightly cleaner Readme. 2016-09-04 15:07:47 -07:00
Sergio Benitez a4f56f1790 Don't repeat parsing of path. 2016-09-04 14:50:14 -07:00
Sergio Benitez 1f19b88803 Use forked diesel to compile on latest nightly. 2016-09-04 14:24:48 -07:00
Sergio Benitez 7f54c9036f Return HTML for default catchers. 2016-09-04 14:24:36 -07:00
Sergio Benitez fec443a3f0 Fix issue #1. 2016-09-04 13:51:16 -07:00
Sergio Benitez 529340ebb7 Add missing comma to quote_enum macro. 2016-09-04 13:34:11 -07:00
Sergio Benitez f54b39584d Renamed method_variant_to_expr to method_to_path. 2016-09-04 04:22:43 -07:00
Sergio Benitez a127a06480 Update README.md example. 2016-09-04 04:10:35 -07:00
Sergio Benitez 5722e9453e Removed unncessary code. 2016-09-04 04:10:10 -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 99074a913d Add example for future testing API. 2016-08-27 16:20:01 -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 2b7b733e83 Remove denig: it is not a macro. 2016-08-25 19:08:56 -07:00
Sergio Benitez a5e1f8246c Revert parsing bug introduced in commit 43bfefc1b2. 2016-08-25 19:02:26 -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 43bfefc1b2 Switch to UFCS in param.contains call. 2016-08-23 23:23:57 -07:00
Sergio Benitez 05cf6b57c4 Add the content_types example. 2016-08-22 20:40:19 -07:00
Sergio Benitez b51cb22f87 Fix Route::ranked type signature. 2016-08-22 20:38:39 -07:00