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.
对于我们 API 的第二次迭代,我们正在执行完全重写。
为了使过渡顺利进行,我想使用 API 端点 /api/v1/** 设置我们的新服务器,使其成为旧服务器的镜像。
ring/compojure 中是否有任何内置功能可以让我将整个请求传递给 clj-http(或其他 http 客户端)?
FIY:两个服务器都是用 Clojure 编写的,使用 Compojure 和 ring 库。
看一下ring-proxy,我将它完全用于相同的目的。