Commit Graph

13 Commits

Author SHA1 Message Date
Yong Wen Chua f8a3f70d05 Seems like lifetime proliferation 2017-07-17 10:32:41 +08:00
Yong Wen Chua f45fa4df04 Ad-hoc response now use response guards 2017-07-17 10:20:15 +08:00
Yong Wen Chua 6746e835e7 Response no longer validates 2017-07-17 00:08:23 +08:00
Yong Wen Chua abda99d71f Errors are not handled properly 2017-07-16 15:39:12 +08:00
Yong Wen Chua f73ee3a62e Refactor to allow for fairings to be even built 2017-07-16 14:59:04 +08:00
Yong Wen Chua 88640afaae Skeleton 2017-07-16 14:41:33 +08:00
Yong Wen Chua ce4eaf84ff Add validate to Cors 2017-07-16 14:24:00 +08:00
Yong Wen Chua 6f1a24e12d Move some code to headers module 2017-07-15 11:18:37 +08:00
Yong Wen Chua d23c935a4a Rename Options to Cors 2017-07-15 10:54:26 +08:00
Yong Wen Chua 7dbc22b523 Delay CORS checks and response until `Responder::respond_to` is invoked (#6)
* Delay checking of CORS to just before responding

* Lifetime issues

* Use State::inner()

* Fix lifetime issues

* Bump Rocket

* Document 'static limitation

And link to https://github.com/SergioBenitez/Rocket/pull/345

* Remove extraneous comments
2017-07-15 01:38:13 +08:00
Yong Wen Chua f1391281cd Response unit tests 2017-07-14 15:35:44 +08:00
Yong Wen Chua ca096ceb28 Extract headers integration tests 2017-07-14 13:54:34 +08:00
Yong Wen Chua 830b14afed Move integration tests 2017-07-14 12:26:47 +08:00