Re: convert Network.Wai Request to Network.HTTP.Conduit Request
Actually, as I try to figure out how to do this convert one to the other, turns out that I don't know how to do this period, as the Conduit Request is a Request m and the Yesod Request/Wai Request is just a simple data type, and in addition, I'm running into all kinds of problems, like how to set the RequestBody m type, all of which is related to the fact that I still don't really understand Haskell yet.
On Friday, September 7, 2012 11:53:12 AM UTC-7, Victor Chou wrote:
What I want to do is to pass along a POST/GET message to another server. But in the main application what I get from getRequest is a Yesod Request and waiRequest gives me a Network.Wai Request. I think I need to pass along a Network.HTTP.Conduit Request. Is there an easy easy to convert a WAI Request to the Conduit Request? Thanks.