retrofit / retrofit2.http / FormUrlEncoded

FormUrlEncoded

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class FormUrlEncoded

Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with @Field.

Requests made with this annotation will have application/x-www-form-urlencoded MIME type. Field names and values will be UTF-8 encoded before being URI-encoded in accordance to RFC-3986.

Constructors

<init>

FormUrlEncoded()

Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with @Field.