@Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface Part
The parameter type 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("/") void example(@Part("description") String description, @Part("image") TypedFile image, ... );
Part parameters may not be null
.
public abstract String value
Copyright © 2013 Square, Inc.. All Rights Reserved.