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.
我正在尝试使我的 http4k REST API 需要 SSL,但我无法弄清楚如何为 SSL 配置 Jetty。
因为它支持多个后端,http4k 没有附带任何内置 API 来实现 SSL。相反,您可以实现自己的自定义版本的JettyServerConfig 接口,以便根据需要配置服务器。作为模板,您可以在此处使用:
Jetty
https://github.com/http4k/http4k/blob/master/http4k-server-jetty/src/main/kotlin/org/http4k/server/jetty.kt