How to enable HTTP Pipelining with Spray-Can

时间:2015-12-10 01:31:10

标签: scala akka spray spray-client spray-can

I read on the spray-can docs that it supports HTTP Pipelining. But there is no method or example specified anywhere on how to do it.

1 个答案:

答案 0 :(得分:1)

这是配置设置。有关Spay配置中的所有可用设置,请参阅thisthis doc。

此设置将其打开:

http://www.example.com/api/docs/getDocParams?LogonTicket=111&ValPairs[0][CLI_RID]=111111&ValPairs[0][DOC_NAME]=Letter&ValPairs[1][CLI_RID]=22222&ValPairs[1][DOC_NAME]=document&...

这个必须是> 1有效地启用它:

spray.can.host-connector.pipelining = off

默认情况下,管道输出已关闭。

每个设置的相关说明:

spray.can.server.pipelining-limit = 1