spray.can.server.server-header
の設定をapplication.confに書くとServer
ヘッダの内容を変更できる。
application.conf
spray.can {
server {
server-header = "MyServer/1.0"
}
}
HTTPのヘッダはこんなかんじに。
GET /ping
レスポンス:
HTTP/1.1 200 OK
Content-Length: 2
Content-Type: text/plain; charset=UTF-8
Date: Wed, 24 Sep 2014 10:17:28 GMT
Server: MyServer/1.0
ok