1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

rename params to match_info

This commit is contained in:
Nikolay Kim
2017-10-16 10:20:16 -07:00
parent 02033724d8
commit 95fa70d19e
4 changed files with 8 additions and 7 deletions

View File

@ -77,13 +77,13 @@ fn test_request_query() {
}
#[test]
fn test_request_params() {
fn test_request_match_info() {
let req = HttpRequest::new(Method::GET, Uri::try_from("/?id=test").unwrap(),
Version::HTTP_11, HeaderMap::new());
let mut params = Params::new();
params.insert("key".to_owned(), "value".to_owned());
let req = req.with_params(params);
assert_eq!(req.params().find("key"), Some("value"));
let req = req.with_match_info(params);
assert_eq!(req.match_info().find("key"), Some("value"));
}