@Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface 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);
public abstract String encoding
Content-Transfer-Encoding
of this part.Copyright © 2015 Square, Inc.. All Rights Reserved.