REST服务的客户端如何知道它是get或post请求? [英] How client of REST service come to know that it is a get or post request?
本文介绍了REST服务的客户端如何知道它是get或post请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
REST服务的客户端或消费者如何知道它是get或post服务?
解决方案
这是HTTP请求的一部分,根据HTTP协议的标准: http://en.wikipedia.org/wiki/HTTP [ ^ ]。
消费者Web服务不需要知道它,因为消费者实际上发送了HTTP请求。你可能把这两部分搞混了吗?服务部分找出方法(动词)来自HTTP请求。
- SA
How client or consumer of REST service come to know that it is a get or post service?
解决方案
This is a part of HTTP request, according to the standard on HTTP protocol: http://en.wikipedia.org/wiki/HTTP[^].
The consumer of a Web service does not need to "know" it, because a consumer actually sends a HTTP request. Could you possibly mixed up these two parts? And the service part "finds it out" what the method ("verb") is from the HTTP request.
—SA
这篇关于REST服务的客户端如何知道它是get或post请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文