@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)
.
Values may be null
which will omit them from the request body.
@Multipart @POST("/") void example(@Part("description") String description, @Part("image") TypedFile image, ... );
Part parameters may not be null
.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
Copyright © 2014 Square, Inc.. All Rights Reserved.