You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is possibly(probably) something stupid that I am not getting..
I am trying to log out responseHeaders from my Koa sample, but am having no success.
I have the Koa sample from docs running successfully, and outputting to console with the basics.
But I have been bumping my head for a while and can't figure out how I get cabin JS to log the response Headers via parse-request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
This is possibly(probably) something stupid that I am not getting..
I am trying to log out responseHeaders from my Koa sample, but am having no success.
I have the Koa sample from docs running successfully, and outputting to console with the basics.
But I have been bumping my head for a while and can't figure out how I get cabin JS to log the response Headers via parse-request.
I can successfully do it myself using
const req = parseRequest({ req: ctx, responseHeaders: ctx.response.header }); console.log('req', req)
But am assuming I am missing something and there is a way to get this done from within cabinJS.
Any help appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions