码头客户和PATCH方法 [英] Jetty client and PATCH method

查看:154
本文介绍了码头客户和PATCH方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过码头客户执行PATCH方法? 我正在使用Jetty 9.3.3,并且在枚举HttpMethod中未定义PATCH方法.

Is it possible to execute PATCH method with jetty client? I am using Jetty 9.3.3 and the PATCH method is not defined in the enum HttpMethod.

我还检查了Jetty 9.3.10的 api 和我在枚举HttpMethod中找不到PATCH方法.

I also checked the api of Jetty 9.3.10 and I did not find the PATCH method in the enum HttpMethod.

如果不支持它,我如何扩展Jetty代码以使其能够使用? 我只需要在客户端使用它(Jetty客户端需要能够发送补丁请求).

if it is not supported, how can I extend the Jetty code to be able to use it? I only needed it in the client side (Jetty client need to be able to send Patch request).

感谢和问候.

推荐答案

是的,可以在Jetty客户端上使用PATCH动词.

Yes, it's possible to use the PATCH verb with the Jetty client.

缺少HttpMethod枚举中的值,但是建议将PATCH作为字符串传递给

The value in the HttpMethod enum is absent, but the recommendation is to pass PATCH as a string to the method() API in the Request.

在此提交中添加了支持.

这篇关于码头客户和PATCH方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆