File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use snafu::ResultExt;
10
10
use std:: { collections:: HashMap , time:: Duration } ;
11
11
use tokio_util:: codec:: Decoder as _;
12
12
13
- use crate :: http:: QueryParameters ;
13
+ use crate :: http:: { QueryParameterValue , QueryParameters } ;
14
14
use crate :: sources:: util:: http_client;
15
15
use crate :: {
16
16
codecs:: { Decoder , DecodingConfig } ,
@@ -123,12 +123,19 @@ const fn default_http_method() -> HttpMethod {
123
123
HttpMethod :: Get
124
124
}
125
125
126
- fn query_examples ( ) -> HashMap < String , Vec < String > > {
126
+ fn query_examples ( ) -> QueryParameters {
127
127
HashMap :: < _ , _ > :: from_iter ( [
128
- ( "field" . to_owned ( ) , vec ! [ "value" . to_owned( ) ] ) ,
128
+ (
129
+ "field" . to_owned ( ) ,
130
+ QueryParameterValue :: SingleParam ( "value" . to_owned ( ) ) ,
131
+ ) ,
129
132
(
130
133
"fruit" . to_owned ( ) ,
131
- vec ! [ "mango" . to_owned( ) , "papaya" . to_owned( ) , "kiwi" . to_owned( ) ] ,
134
+ QueryParameterValue :: MultiParams ( vec ! [
135
+ "mango" . to_owned( ) ,
136
+ "papaya" . to_owned( ) ,
137
+ "kiwi" . to_owned( ) ,
138
+ ] ) ,
132
139
) ,
133
140
] )
134
141
}
You can’t perform that action at this time.
0 commit comments