标签: scala playframework http-headers playframework-2.0
我知道Setting HTTP headers in Play 2.0 (scala)?
但是如何在播放框架中设置自定义响应标头如X-Hello-World?
X-Hello-World
答案 0 :(得分:7)
只需:
Ok .withHeaders("X-Hello-World" -> "it's me")