提交 238a9e59 编写于 作者: W walfud

Doc error. `@QueryMap` with `encoded=true` will stop default url encoding. So,...

Doc error. `@QueryMap` with `encoded=true` will stop default url encoding. So, calling with `foo.list(ImmutableMap.of("foo", "foo+bar"))` yields '/search?foo=foo+bar' instead of '/search?foo=foo%2Bbar'.
上级 403573ab
......@@ -43,8 +43,8 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* @GET("/search")
* Call<ResponseBody> list(@QueryMap(encoded=true) Map<String, String> filters);
* }</pre>
* Calling with {@code foo.list(ImmutableMap.of("foo", "foo+foo"))} yields
* {@code /search?foo=foo%2Bbar}.
* Calling with {@code foo.list(ImmutableMap.of("foo", "foo+bar"))} yields
* {@code /search?foo=foo+bar}.
*
* @see Query
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册