Sergio Benitez
a2e99985b0
Fix data buffer indexing bug. Add from_request example.
2016-11-21 00:45:44 -08:00
Sergio Benitez
ba88fcdc95
Document FromRequest. Clarify FromFormValue::default.
2016-11-06 17:07:47 +01:00
Sergio Benitez
f5a5ea3a22
Rename `data` to `content` in `response`. Remove `DataOutcome`.
2016-10-25 13:03:50 +02:00
Sergio Benitez
5447f81f77
Remove RequestOutcome, ResponseOutcome in favor of Outcome. Remove Failure response type.
2016-10-25 11:17:49 +02:00
Sergio Benitez
2da43e24f7
Document most of the request module.
2016-10-21 02:56:57 -07:00
Sergio Benitez
722f613686
Use Outcome as the result of all fallible conversions.
2016-10-13 18:39:23 -07:00
Sergio Benitez
8c0d11feab
Completely new raw API.
...
Summary of changes:
* Request no longer has a lifetime parameter.
* Handler type now includes a `Data` parameter.
* Response is now an enum that is either `Complete` or `Forward`.
* Outcome enum is now one of: Success, Failure, Forward.
* Outcome::Foward for Responses must include StatusCode.
* Responders are now final: they cannot forward to requests. (!!)
* Responsers may only forward to catchers. (!!)
* Response no longer provides wrapping methods.
* Route is now cloneable.
This change is fundamental to enabling streaming requests.
2016-10-07 23:20:49 -07:00
Sergio Benitez
74ec26db95
Namespace HTTP-related type under `http`.
2016-10-03 17:09:13 -07:00
Sergio Benitez
a29d56c52e
Reform top-level libs mostly according to Rustfmt.
2016-09-30 15:20:11 -07:00
Sergio Benitez
e8e85f09cd
Add support for flash cookie. Revamp cookie support.
2016-09-11 18:57:04 -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
90d8621adf
Major overhual: Request, ErrorHandler, ContentType.
2016-08-26 01:55:11 -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