@Documented
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public static @interface Retrofit.PartMap
Values of the map on which this annotation exists will be processed in one of three ways:
TypedOutput the headers and
body will be used directly.String the value will also be used directly with a text/plain
content type.Converter.toBody(Object).
@Multipart
@POST("/upload")
void upload(@Part("file") TypedFile file, @PartMap Map<String, String> params);
Retrofit.Multipart,
Retrofit.Part| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
encoding
The
Content-Transfer-Encoding of this part. |