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 request.reply.proxy() #1147

Merged
merged 2 commits into from Nov 15, 2013
Merged

Add request.reply.proxy() #1147

merged 2 commits into from Nov 15, 2013

Conversation

hueniverse
Copy link
Contributor

Closes #1146

{ method: 'GET', path: '/single', handler: { proxy: { mapUri: mapSingleUri } } }
{ method: 'GET', path: '/single', handler: { proxy: { mapUri: mapSingleUri } } },
{ method: 'GET', path: '/handler', handler: function () { this.reply.proxy({ uri: 'http://localhost:' + backendPort + '/item' }); } },
{ method: 'GET', path: '/handlerTemplate', handler: function () { this.reply.proxy({ uri: '{protocol}://localhost:' + backendPort + '/item' }); } }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a test for format like:

this.reply.proxy({ protocol: 'http', port: 80, host: 'localhost'})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

geek added a commit that referenced this pull request Nov 15, 2013
@geek geek merged commit 117bdeb into master Nov 15, 2013
@hueniverse hueniverse deleted the issue/1146 branch November 20, 2013 06:52
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose proxy functionality as a utility
2 participants