Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
scala spray如何在发送答案后立即关闭连接?
在其他 http 服务器中我m set tcp optionsso_linger` = 0
m set tcp options
我可以在哪里设置 spray_can 中的 so_linger 参数?
您可以Connection("close")在响应上设置标题。然后喷雾罐将关闭连接。
Connection("close")