Skip to content

Added options for transformReq and transformResp functions#48

Open
jfrej wants to merge 1 commit into
gonzalocasas:masterfrom
jfrej:transform
Open

Added options for transformReq and transformResp functions#48
jfrej wants to merge 1 commit into
gonzalocasas:masterfrom
jfrej:transform

Conversation

@jfrej
Copy link
Copy Markdown

@jfrej jfrej commented Feb 16, 2016

Added options for transformReq and transformResp functions. This allows dynamic modification of request and response headers. It's based on the fork by @rjferguson21 (https://github.com/rjferguson21/node-proxy-middleware).

To give a real life example, I need this to add an X-Forwarded-Host header which must be the same as the Host header. This needs to be dynamic (localhost or network hostname) so can't be hardcoded in options.headers.

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

Successfully merging this pull request may close these issues.

1 participant