Actix-web: Can I get params from query string or http body or cookie or http header as a map?

Created on 29 Apr 2019  路  3Comments  路  Source: actix/actix-web

I want to get some params dynamically, but now I only found the way to get some known field from the request

All 3 comments

use fn index(req: HttpRequest) -> ...

this is question for chat.

I just find a method req.query_string(), do I need parse it myself to a map?

you should check api docs and example. there are plenty of various examples

https://docs.rs/actix-web/1.0.0-beta.2/actix_web/web/struct.Query.html

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kocoten1992 picture kocoten1992  路  3Comments

bedax picture bedax  路  3Comments

icommit picture icommit  路  3Comments

cheolgyu picture cheolgyu  路  3Comments

Dadibom picture Dadibom  路  4Comments