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

Add option for attaching outgoing headers, extraHeaders. #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cheddar
Copy link

@cheddar cheddar commented Feb 11, 2014

This also required adjusting web-incoming to pass the options object to the web-outgoing passes. One thing I noticed is that web-outgoing doesn't appear to be exposed to anyone that wants mutate it externally.

I think extensions of this nature would be better done via some well-defined API that allows me to mutate the passes on the proxy object. But, as it stands that doesn't exist and is too much for me to just guess at what would be acceptable and try to fix.

This also required adjusting web-incoming to pass the options object to the web-outgoing passes.  One thing I noticed is that web-outgoing doesn't appear to be exposed to anyone that wants mutate it externally.

I think extensions of this nature would be better done via some well-defined API that allows me to mutate the passes on the proxy object.  But, as it stands that doesn't exist and is too much for me to just guess at what would be acceptable and try to fix.
@sandinmyjoints
Copy link

Why aren't web-outgoing passes exposed the way incoming passes are exposed, for before and after hooks?

@jcrugzz
Copy link
Contributor

jcrugzz commented Dec 19, 2014

@cheddar could you rebase the PR and rename to outgoingHeaders? This seems reasonable, sorry it took so long

@jcrugzz
Copy link
Contributor

jcrugzz commented Apr 1, 2015

Also as a note, headers can be modified in the proxyRes event

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

Successfully merging this pull request may close these issues.

4 participants