Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access express res object #64

Open
erykwarren opened this issue Dec 15, 2018 · 1 comment
Open

How to access express res object #64

erykwarren opened this issue Dec 15, 2018 · 1 comment

Comments

@erykwarren
Copy link
Contributor

Using exegesis-express, I am not sure how to access the express res object (for example, to call res.cookie)... The class ExegesisResponseImpl does not offer all those functions. Is the user expected to use origRes for those?

Idea: could the exegesis-express offer a res that is a proxy or a mixin to both the express res object and ExegesisReponse... I could dig into a more concrete suggestion

@pvince
Copy link
Contributor

pvince commented Dec 17, 2018

I could be wrong, but I think the Express res is available on the context at context.origRes.

More info about what is available on the context is available at: https://github.com/exegesis-js/exegesis/blob/master/docs/Exegesis%20Controllers.md#whats-in-a-context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants