@Documented
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface FieldMap
Simple Example:
@FormUrlEncoded
@POST("/things")
Call<ResponseBody> things(@FieldMap Map<String, String> fields);
Calling with foo.things(ImmutableMap.of("foo", "bar", "kit", "kat")
yields a request body
of foo=bar&kit=kat
.
A null
value for the map, as a key, or as a value is not allowed.
FormUrlEncoded
,
Field
Modifier and Type | Optional Element and Description |
---|---|
boolean |
encoded
Specifies whether the names and values are already URL encoded.
|