Skip to content

Instantly share code, notes, and snippets.

@bts
Created April 18, 2012 20:38
Show Gist options
  • Save bts/2416413 to your computer and use it in GitHub Desktop.
Save bts/2416413 to your computer and use it in GitHub Desktop.
router.proxyRequest req, res,
host: proxyHost
port: proxyPort
# becomes:
router.proxyRequest req, res,
host: proxyHost
port: proxyPort
responseHeaderTransform: (headers) ->
headers['X-Foo-Bar'] = 'baz'
headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment