title: Is it possible to implement the CONNECT HTTP method with the Snap framework?
body: <p>I'm looking into possibilities how to implement the CONNECT HTTP method that allows <a href="http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling" rel="nofollow">tunneling data over HTTP</a>. However, I couldn't find a way how to implement bi-directional processing within one Snap request. The closest thing I found was <a href="http://hackage.haskell.org/package/snap-core-0.8.0.1/docs/Snap-Core.html#v:transformRequestBody" rel="nofollow">transformRequestBody</a></p>
  
  <pre><code>transformRequestBodySource :: (forall a. Enumerator Builder IO a) -&gt; Snap ()
  </code></pre>
  
  <p>but this only transforms request input into response output, while I need to process input and output simultaneously to relay data to the requested target resource.</p>