Yong Wen Chua
9cb16ba01d
Use request local cache for fairing implementation ( #50 )
2018-11-01 14:44:28 +08:00
Yong Wen Chua
b80c1939d4
Remove `macro_use` on `extern crate` ( #47 )
...
* Remove macro_use from examples
* Remove macro_use from log and rocket
* Remove macro_use for serde_derive
* Remove from examples
* Fix no-default features build failure
2018-10-31 10:59:01 +08:00
Yong Wen Chua
086f018bb9
cargo fix --edition
2018-10-31 10:31:16 +08:00
Yong Wen Chua
4dda14373a
cargo fmt
2018-10-31 10:30:10 +08:00
Eric Dattore
0b73773692
Update library to 0.4 and support Rocket 0.4 ( #46 )
...
* Update Cargo.toml for Rocket `master`
* Prepare library for Rocket 0.4
TODO: check line 62 in `fairing.rs` to find better way than unwrapping
* Bump minimum nightly for Rocket 0.4
2018-10-31 10:25:10 +08:00
Yong Wen Chua
7954d9d078
Cargo fmt ( #42 )
2018-07-18 13:26:33 +08:00
Yong Wen Chua
ec04e27a89
Configure the rank of the injected Fairing error handling route ( #36 )
...
* Add option to change the rank of the injected Fairing error handling route
* Document the route
2018-02-14 14:21:50 +08:00
Yong Wen Chua
ff1deabf55
Rustfmt fix
...
- Bump to 0.2.2
- Add Travis cargo cache
2018-02-14 13:22:43 +08:00
Allan Simon
cc871967df
update fairing.rs removed duplicate condition ( #27 )
...
the method == option check was present twice for apparently no reason (typo?)
2017-10-31 11:00:14 +08:00
Yong Wen Chua
ede4b1a222
Cargo clippy fixes
2017-07-26 14:37:02 +08:00
Yong Wen Chua
8eb782a7ca
Log to info when Fairing's `on_response` changes
...
the status code of a 404 OPTIONS
Fixes #20
2017-07-24 13:55:35 +08:00
Yong Wen Chua
0a94dfe22a
Add Convenience typedefs and functions ( #19 )
...
* Add JSON documentation and convenience AllowedOrigin
* Add `AllowedHeaders`
* Add AllowedHeaders
* Fix tests
2017-07-19 12:25:56 +08:00
Yong Wen Chua
fcd83e8fb5
Fix an issue where Fairing on_response will inject CORS headers into failed CORS requests
2017-07-19 09:52:30 +08:00
Yong Wen Chua
35e9665628
Add remaining missing unit tests ( #12 )
2017-07-18 13:11:30 +08:00
Yong Wen Chua
41f5ac11d8
Refactor to separate out validation from response building step 1
2017-07-17 23:11:12 +08:00
Yong Wen Chua
05b969e735
Remove serde
2017-07-17 18:55:54 +08:00
Yong Wen Chua
56de116595
Add serde pass between fairings
2017-07-17 18:06:00 +08:00