retrofit / retrofit2.http / Body / <init>

<init>

Body()

Use this annotation on a service method param when you want to directly control the request body of a POST/PUT request (instead of sending in as request parameters or form-style request body). The object will be serialized using the Retrofit instance Converter and the result will be set directly as the request body.

Body parameters may not be null.