【发布时间】:2026-02-21 17:45:01
【问题描述】:
我正在研究如何实现允许tunneling data over HTTP 的 CONNECT HTTP 方法的可能性。但是,我找不到如何在一个 Snap 请求中实现双向处理的方法。我找到的最接近的是transformRequestBody
transformRequestBodySource :: (forall a. Enumerator Builder IO a) -> Snap ()
但这只是将请求输入转换为响应输出,而我需要同时处理输入和输出以将数据中继到请求的目标资源。
【问题讨论】:
标签: haskell tunneling haskell-snap-framework http-method http-tunneling