我正在使用Retrofit,我想用tge删除方法请求。我想使用特定的主体,但删除方法不支持。我创建了自定义类删除方法是这样的:删除请求与身体
@Target(METHOD)
@Retention(RUNTIME)
@RestMethod(hasBody = true,value = "DELETE")
public @interface CustomDelete {
String value();
}
但是当我使用它,我有这样的错误:
10-31 16:24:09.459: I/System.out(21090): retrofit.RetrofitError: DELETE does not support writing