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.
我spray.io用来服务 HTTP 请求。作为回应,我想删除有关喷雾框架的信息。那么如何"Server: spray-can/1.3.3"从响应头中删除spray呢?
spray.io
"Server: spray-can/1.3.3"
spray
您可以通过以下方式设置application.conf:
application.conf
spray.can { server { # The value of the `Server` header to produce. # Set to the empty string to disable rendering of the server header. server-header = spray-can/${spray.version} } }