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

Option to proxy requests for unknown paths #56

Open
sideshowcoder opened this issue Feb 4, 2015 · 1 comment
Open

Option to proxy requests for unknown paths #56

sideshowcoder opened this issue Feb 4, 2015 · 1 comment
Assignees

Comments

@sideshowcoder
Copy link
Owner

If canned is used to stub out requests for a server it can be useful to proxy requests for unknown routes. The idea is to instead of serving a 404 forward the request to specified server and serve the result.

$ canned ./example --proxy=http://example.com 

when querying for a path that is not present in canned like

$ curl http://localhost:3000/i_dont_exist_in_canned

it shoudl issue a query to http://example.com/i_dont_exist_in_canned and serve
whatever the result of this query is.

@git-jiby-me
Copy link
Collaborator

#84

@git-jiby-me git-jiby-me self-assigned this Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants