1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

undeprecate query() and store query in extensions

This commit is contained in:
Nikolay Kim
2018-05-15 09:53:58 -07:00
parent 953a0d4e4a
commit ef89430f9b
2 changed files with 22 additions and 23 deletions

View File

@ -32,7 +32,7 @@
https://actix.rs/actix-web/actix_web/trait.Responder.html#tymethod.respond_to)
is generic over `S`
* `HttpRequest::query()` is deprecated. Use `Query` extractor.
* Use `Query` extractor instead of HttpRequest::query()`.
```rust
fn index(q: Query<HashMap<String, String>>) -> Result<..> {