v0.6.2
Route路由添加Handler方式优化
增加 fn handler(self, method: Method, handler: Arc<dyn Handler>) -> Self
方法
Handler简化
- handler处理机制优化
增加直接返回为Response的封装
详细示例(examples/custom_response) - 增加定制Handler
详细示例(examples/custom_handler)
增加 fn handler(self, method: Method, handler: Arc<dyn Handler>) -> Self
方法