cloudwego / volo

Rust RPC framework with high-performance and strong-extensibility for building micro-services.
https://crates.io/crates/volo
Apache License 2.0
2.13k stars 166 forks source link

feat(volo-http): support path extractor #413

Closed wfly1998 closed 2 months ago

wfly1998 commented 2 months ago

This commit refactors original Params and use UrlParamsVec instead. The UrlParamsVec is saved in ServerContext and we can extract it as vector UrlParamsVec or map UrlParamsMap, or extract as basic types with UrlParams, e.g., UrlParams<String>, UrlParams<(usize, String)>.

Examples are also updated.