批次的HTTP请求 [英] batch http requests

查看:192
本文介绍了批次的HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个标准的方式来批量http请求?
含义 - 在一个往返发送多个HTTP请求原子

Does anyone know a standard way to batch http requests? Meaning - sending multiple http atomic requests in one round trip?

我们需要在我们的性能方面的原因REST API实现这样的机制。这种机制可以显着降低该客户端需要执行来使用API​​的往返次数。

We need such mechanism in our REST API implementation for performance reasons. This kind of mechanism can reduce dramatically the number of round trips that the client needs to perform to consume the API.

由于提前,

吉文

推荐答案

定义一个包含客户端需要的数据的新资源。见的http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven#comment-743

Define a new resource that contains the data the client wants. See http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven#comment-743

这篇关于批次的HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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