diff --git a/examples/auth-with-state.rs b/examples/auth-with-state.rs index 4ed59d3..27a5ec3 100644 --- a/examples/auth-with-state.rs +++ b/examples/auth-with-state.rs @@ -1,6 +1,6 @@ use http::{Request, Response, StatusCode}; use hyper::Body; -use ratpack::{app::App, compose_handler, Error, HTTPResult, Params, ServerError}; +use ratpack::prelude::*; async fn validate_authtoken( req: Request
, diff --git a/src/lib.rs b/src/lib.rs index 9693f4e..b0e0076 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,3 +73,7 @@ where /// with [std::option::Option::None] as the [http::Response], a 500 Internal Server Error will be /// returned. pub type HTTPResult = Result<(Request