retrofit.http
Annotation Type Field


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface Field

Named pair for a form-encoded request.

 @FormUrlEncoded
 @POST("/")
 void example(@Field("name") String name, @Field("occupation") String occupation, ..);
 }
 

Field parameters may be null which will omit them from the request body.


Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2013 Square, Inc.. All Rights Reserved.