I am trying to implement a batch request method in a pyramid. I see in the docs that this is done using
subrequest = Request.blank('/relative/url')
request.invoke_subrequest(subrequest)
I'm just wondering how you go through the headers and cookies? Is it already done for you or is it
request.invoke_subrequest(subrequest, cookies=request.cookies, headers=request.headers)
What about parameters for different methods? Documents have only <keyword POST.
It seems to me that the documents are a bit vague, or I cannot find the correct documents on how to do this. Thanks
Jeff source
share