【发布时间】:2018-01-20 03:03:38
【问题描述】:
我正在使用 Retrofit,我想使用 tge delete 方法发出请求。我想使用特定的主体,但删除方法不支持。我为这样的删除方法创建了自定义类:
@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
【问题讨论】:
标签: retrofit