【问题标题】:How to integrate PATCH rest api in android?如何在android中集成PATCH rest api?
【发布时间】:2014-07-23 10:56:56
【问题描述】:

我正在android中集成rest api。有四种服务。 1.发布 2.获取 3.补丁 4.删除。除了 PATCH webservice,我已经集成了所有使用“asynchttpclient”的东西。我已经检查了所有方法,但在“asynchttpclient”中没有找到任何与 PATCH 相关的方法。 谁能告诉我如何使用 PATCH 方法将 rest api 与相同的库“asynchttpclient”或其他任何东西集成。我在这里停留了 2 天,但没有找到任何解决方案。

【问题讨论】:

  • 你有什么补丁解决方案吗??

标签: android api rest patch


【解决方案1】:

Android 带有一个 apache http 客户端 4.x 的副本,您可以将 HttPPost 子类化为一个 HttpPatch 对象,或者在查询字符串上使用 _HttpMethod 选项,类似于它在 this other 中的概述邮政。 PATCH example with apache HttpClient

【讨论】:

  • 它没有删除任何重定向
猜你喜欢
  • 1970-01-01
  • 2015-06-15
  • 2015-09-11
  • 2020-01-27
  • 1970-01-01
  • 2017-12-25
  • 2015-01-16
  • 2021-09-04
  • 2017-01-05
相关资源
最近更新 更多