Closed xurwxj closed 5 years ago
Which adapter do you use ?
express
Sorry I cannot reproduce req
and res
are present in UVue context:
async onHttpRequest({ commit }, { req, res }) {
console.log(req, res);
}
PS: there is a template to fill issue, please respect it !
@chymz tks a lot for your reply. It looks like I'm in the wrong way. At the same time, tks for your reminder. Next time, i'll submit in accordance with the rules.
can u add req/res to onHttpRequest's context? It's for the convenience of getting header/cookie from req where process.server is true.