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.
如何直接在 http-kit 中编写响应?我正在构建一个隧道代理,需要第一个响应是准确的"HTTP/1.1 200 Connection established\r\n\r\n",,但似乎 http-kit 将它呈现为一个body,即使我做了类似的事情{:status "HTTP/1.1 200 Connection established"}
"HTTP/1.1 200 Connection established\r\n\r\n",
{:status "HTTP/1.1 200 Connection established"}
您是否将 http-kit 配置为使用代理?
这是他们的测试套件中的一个示例:
@(http/get "https://127.0.0.1:9898/get" {:proxy-url "http://127.0.0.1:4348"})