haskell - How does one pipe `rawRequestBody` into `requestBodySource`? -
yesod has rawrequestbody following type signature:
rawrequestbody :: monadhandler m => source m bytestring and http-conduit has function converts source requestbody:
requestbodysource :: int64 -> source (resourcet io) bytestring -> requestbody i want able stream rawrequestbody s3 object converting requestbody inside handler, resourcet io ~ monadhandler doesn't compute , can't seem monadhandler m => m -> resourcet io
i've tried:
transpipe - if source handler bytestring rawrequestbody seems way @ bytestring consume it, i.e
transpipe ??? rawrequestbody :: source (resourcet io) bytestring handlertoio - seems request body cleared there won't data available
please :)
the function wairequest give wai request value. can use sourcerequestbody source that.
Comments
Post a Comment