Provide .method() and .query_params()

This commit is contained in:
Martin Algesten
2021-01-26 20:59:55 +01:00
parent c4c1618042
commit 239ba342a2
3 changed files with 88 additions and 46 deletions

View File

@@ -136,7 +136,7 @@ fn request_debug() {
assert_eq!(
s,
"Request(GET http://localhost/my/page [], [Authorization: abcdef, \
"Request(GET http://localhost/my/page, [Authorization: abcdef, \
Content-Length: 1234, Content-Type: application/json])"
);
@@ -148,7 +148,7 @@ fn request_debug() {
assert_eq!(
s,
"Request(GET http://localhost/my/page?q=z [(\"foo\", \"bar baz\")], [Authorization: abcdef])"
"Request(GET http://localhost/my/page?q=z&foo=bar+baz, [Authorization: abcdef])"
);
}