开发者

http 1.1 pipeling client implementation

What would be the programming model for an http 1.1 client implementation with support for pipeling? I am interested in pip开发者_JAVA技巧eling POSTs.


You question seems to be back to front to me. If you're interested in pipelining you must already have a programming model in mind. And the RFC does say that POST shouldn't be pipelined.


As EJP already mentioned, POSTs shouldn't be pipelined. But since "SHOULD" is not "MUST", I'll be adding pipelining support (yes, POSTs will also be supported) to hotpotato pretty soon.

Not sure whether you're looking for an existing implementation or wanting to make one of your own... Either way, that project could come in handy :)


There is also work under way by a developer to add HTTP pipelining support for Async HTTP Client at github.

With respect to pipelining POSTs, one might want to read "should not" pretty much same as "DO NOT" -- if standard specifier thinks it's a bad idea, maybe it is? -- but perhaps there are specific use cases where it is well known that general unknowns with POSTS (lack of idempotency) are not true, and thereby it makes sense.


I think jboss's netty supports pipelining.

Have a look here for more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜