diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 10:34:16 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 10:34:18 -0700 |
commit | 0319c8f531139c2b4c49570a499894d7200760f5 (patch) | |
tree | e52a43ca477ea2701f541e42b67a455a1b98daf0 /rust/src/bin | |
parent | 4c90242579c1e673ae47d63786503370c512f148 (diff) | |
download | fatcat-0319c8f531139c2b4c49570a499894d7200760f5.tar.gz fatcat-0319c8f531139c2b4c49570a499894d7200760f5.zip |
implement HTTP header middleware
getting more familar with iron
Diffstat (limited to 'rust/src/bin')
-rw-r--r-- | rust/src/bin/fatcat-iron.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/bin/fatcat-iron.rs b/rust/src/bin/fatcat-iron.rs index eed98b1d..0bed0fa2 100644 --- a/rust/src/bin/fatcat-iron.rs +++ b/rust/src/bin/fatcat-iron.rs @@ -8,10 +8,8 @@ extern crate futures; extern crate iron; extern crate iron_slog; extern crate swagger; -#[macro_use] -extern crate error_chain; -#[macro_use] -extern crate slog; +#[macro_use] extern crate error_chain; +#[macro_use] extern crate slog; extern crate slog_term; extern crate slog_async; @@ -50,6 +48,8 @@ fn main() { // for the purpose of this example, pretend we have authenticated a user chain.link_before(AllowAllMiddleware::new("cosmo")); + chain.link_after(fatcat::XClacksOverheadMiddleware); + if matches.is_present("https") { unimplemented!() } else { |