我是一名翻译,有关IT技术的内容需要我来为您进行翻译。
我正在尝试将字符串列表参数添加到多部分请求中。
使用Apache Http,我这样设置参数:
MultipartEntity mpEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
HttpPost httpPost = new HttpPost(url);
httpPost.setEntity(mpEntity);
for (User member : members) {
mpEntity.addPart("user_ids[]", new StringBody(member.id.toString()));
}
我该怎么在Retrofit上实现这个功能?