Whether code can be optimized

At present, we build a web server based on tide crate, and then realize the automatic scanning API function. However, I would like to ask if there are any optimization suggestions in the macro code

In addition, async it self does not provide http2 code reference. We see that hyper and Actix have http2 encapsulation

actix, hyper, tide, async framework, they are great!