流程分块响应与angularjs $ HTTP [英] Process chunked response with angularjs $http

查看:108
本文介绍了流程分块响应与angularjs $ HTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我discoverd最近分块响应。
我同意大部分的时间,我们希望在一个完整的响应工作。
但是,如果我想在分块响应工作。

I discoverd recently chunked response. I agree that most of the time we want to work on a full response. But what if I want to work on a chunked response.

我将如何做到这一点的$ HTTP服务??

How would i do this with the $http service??

推荐答案

我已经找到一种方法去做一些看起来正确的我
http://www.igvita.com/ 2011/8月26日/服务器发送的事件的通知与 - HTML5 /

I've found a way to do something that looks correct to me http://www.igvita.com/2011/08/26/server-sent-event-notifications-with-html5/

当然也有WebSocket的API,但是它为我的用途接缝重

Of course there is also the websocket api, but it seams heavy for my uses

另一种可能性是写另一个HTTP服务,这将使通过HTTP响应控制

Another possibility would be the write another http service which would give control over the http response

这篇关于流程分块响应与angularjs $ HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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