Simplify the HttpRoute trait
Previously the HttpRoute has logic to clone the handler parameter, which is an implementation detail of the API server. So simplify the HttpRoute interfaces by removing the argument cloning logic. Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
This commit is contained in:
committed by
Adrian Catangiu
parent
ac3bb940ab
commit
8ca0839b58
@@ -121,5 +121,5 @@ pub use self::common::{Body, Method, Version};
|
||||
pub use self::connection::{ConnectionError, HttpConnection};
|
||||
pub use self::request::{Request, RequestError};
|
||||
pub use self::response::{Response, StatusCode};
|
||||
pub use self::router::{EndpointHandler, HttpRoutes, RouteError, TryClone};
|
||||
pub use self::router::{EndpointHandler, HttpRoutes, RouteError};
|
||||
pub use self::server::{HttpServer, ServerError, ServerRequest, ServerResponse};
|
||||
|
||||
Reference in New Issue
Block a user